Skip to content
Snippets Groups Projects
Commit e6c3d49c authored by uıןǝnbsɐW ןǝɐʞɔıW's avatar uıןǝnbsɐW ןǝɐʞɔıW
Browse files

Update .gitlab-ci.yml file

parent 37b97d88
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,15 @@ build: # This job runs in the build stage, which runs first.
expire_in: 1 week
deploy: # This job runs in the deploy stage.
image: cgbaker/levant
image: mmasquelin/nomad-deployer:latest
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
dependencies:
- build
script:
- ./deploy.sh
- envsubst '${CI_COMMIT_SHORT_SHA}' < project.nomad > job.nomad
- cat job.nomad
- nomad validate job.nomad
- nomad plan job.nomad || if [ $? -eq 255 ]; then exit 255; else echo "success"; fi
- nomad run job.nomad
environment:
name: whoami
url: http://whoami.priv.lifl.fr
name: production
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment