diff --git a/.woodpecker.yml b/.woodpecker.yml index e7846d2..29a28b1 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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