Skip to content
Snippets Groups Projects
Commit bf9f57ae authored by Harry Milne's avatar Harry Milne
Browse files

add check-url health check

parent a4da413b
Branches
Tags 3.0.7
No related merge requests found
.deploy-template:
stage: deploy
before_script:
- curl https://git.iwoca.co.uk/devops/ci/raw/2.0.0/scripts/deploy.sh > deploy.sh
- curl https://git.iwoca.co.uk/devops/ci/raw/3.0.7/scripts/deploy.sh > deploy.sh
- chmod +x deploy.sh
script:
- eval VARIABLE="${VARIABLE}" # evaluate variable used in job definition
......
......@@ -25,3 +25,5 @@ cd infrastructure-live/${account}/eu-west-1/${service_path}/ || usage
[ ! -z "$DEPLOY_NO_UPDATE" ] || terraform-update-variable --name "${name}" --value "${value}"
terragrunt apply -lock-timeout=15m --terragrunt-download-dir /home/gitlab-runner/.terragrunt-cache
[ ! -z "${HEALTH_CHECK_URL}" ] || check-url --retries 80 --url "${HEALTH_CHECK_URL}" --expected-body "${value}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment