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
|
done
|
||||||
secrets:
|
secrets:
|
||||||
- ssh_key
|
- ssh_key
|
||||||
|
- DOCKER_MANAGER_IP
|
||||||
- 3dprint_db_password
|
- 3dprint_db_password
|
||||||
- ai_aws_access_key_id
|
- ai_aws_access_key_id
|
||||||
- ai_aws_secret_access_key
|
- ai_aws_secret_access_key
|
||||||
@@ -177,7 +178,9 @@ steps:
|
|||||||
"bash /volume1/docker/compose-files/deploy/stack-deploy.sh $STACK" \
|
"bash /volume1/docker/compose-files/deploy/stack-deploy.sh $STACK" \
|
||||||
&& echo " OK $STACK" || { echo " FAIL $STACK"; exit 1; }
|
&& echo " OK $STACK" || { echo " FAIL $STACK"; exit 1; }
|
||||||
done
|
done
|
||||||
secrets: [ ssh_key ]
|
secrets:
|
||||||
|
- ssh_key
|
||||||
|
- DOCKER_MANAGER_IP
|
||||||
|
|
||||||
verify:
|
verify:
|
||||||
image: alpine:latest
|
image: alpine:latest
|
||||||
@@ -198,7 +201,9 @@ steps:
|
|||||||
"docker stack ps $STACK --filter desired-state=running \
|
"docker stack ps $STACK --filter desired-state=running \
|
||||||
--format ' {{.Name}} {{.CurrentState}}'"
|
--format ' {{.Name}} {{.CurrentState}}'"
|
||||||
done
|
done
|
||||||
secrets: [ ssh_key ]
|
secrets:
|
||||||
|
- ssh_key
|
||||||
|
- DOCKER_MANAGER_IP
|
||||||
|
|
||||||
notify-success:
|
notify-success:
|
||||||
image: alpine:latest
|
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")
|
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
|
curl -sf -X POST -H 'Content-Type: application/json' -d "$PAYLOAD" "$TEAMS_WEBHOOK" || true
|
||||||
secrets: [ teams_webhook ]
|
secrets:
|
||||||
|
- teams_webhook
|
||||||
|
- WOODPECKER_HOST
|
||||||
when:
|
when:
|
||||||
- status: failure
|
- status: failure
|
||||||
|
|||||||
Reference in New Issue
Block a user