Browse Source

Make curl fail hard on bad status code and perform job retries

master
Sean Johnson 3 years ago
parent
commit
57c6628c57
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS. GPG Key ID: 9FA15B87469EA850
  1. 2
      .ci/salt_hook.sh
  2. 1
      .gitlab-ci.yml

2
.ci/salt_hook.sh

@ -1,6 +1,6 @@
#!/usr/bin/env sh
curl -sS -X POST \
curl -sS --fail -X POST \
-H "X-Salt-Project: ${CI_PROJECT_PATH_SLUG}" \
-H "X-Salt-SHA: ${CI_COMMIT_SHA}" \
-H "X-Salt-Secret: ${SALT_FILESYSTEM_SECRET}" \

1
.gitlab-ci.yml

@ -6,6 +6,7 @@ stages:
trigger fileserver update:
image: containers.dev.maio.me/sjohnson/containers/curl:latest
stage: deploy
retry: 2
tags:
- amd64
only:

Loading…
Cancel
Save