fix(.woodpecker.yml): add DOCKER_MANAGER_IP and WOODPECKER_HOST to step secrets lists
ci/woodpecker/push/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed
This commit is contained in:
+10
-3
@@ -104,6 +104,7 @@ steps:
|
||||
done
|
||||
secrets:
|
||||
- ssh_key
|
||||
- DOCKER_MANAGER_IP
|
||||
- 3dprint_db_password
|
||||
- ai_aws_access_key_id
|
||||
- ai_aws_secret_access_key
|
||||
@@ -177,7 +178,9 @@ steps:
|
||||
"bash /volume1/docker/compose-files/deploy/stack-deploy.sh $STACK" \
|
||||
&& echo " OK $STACK" || { echo " FAIL $STACK"; exit 1; }
|
||||
done
|
||||
secrets: [ ssh_key ]
|
||||
secrets:
|
||||
- ssh_key
|
||||
- DOCKER_MANAGER_IP
|
||||
|
||||
verify:
|
||||
image: alpine:latest
|
||||
@@ -198,7 +201,9 @@ steps:
|
||||
"docker stack ps $STACK --filter desired-state=running \
|
||||
--format ' {{.Name}} {{.CurrentState}}'"
|
||||
done
|
||||
secrets: [ ssh_key ]
|
||||
secrets:
|
||||
- ssh_key
|
||||
- DOCKER_MANAGER_IP
|
||||
|
||||
notify-success:
|
||||
image: alpine:latest
|
||||
@@ -219,6 +224,8 @@ steps:
|
||||
- |
|
||||
PAYLOAD=$(printf '{"title":"Swarm Deploy FAILED","text":"Commit: %s See: https://${WOODPECKER_HOST}","themeColor":"ff0000"}' "$CI_COMMIT_MESSAGE")
|
||||
curl -sf -X POST -H 'Content-Type: application/json' -d "$PAYLOAD" "$TEAMS_WEBHOOK" || true
|
||||
secrets: [ teams_webhook ]
|
||||
secrets:
|
||||
- teams_webhook
|
||||
- WOODPECKER_HOST
|
||||
when:
|
||||
- status: failure
|
||||
|
||||
Reference in New Issue
Block a user