Make pipeline wait for successful Nomad deployment

This commit is contained in:
sirkrypt0
2021-04-30 18:20:12 +02:00
committed by Felix Auringer
parent b7009bee6c
commit 2c049afaa6
4 changed files with 61 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ dockerimage:
- nomad validate nomad/api.nomad
# nomad plan returns 1 if allocation is created or destroyed which is what we want here
- nomad plan nomad/api.nomad || [ $? == 1 ]
- nomad run nomad/api.nomad
- nomad-run-and-wait nomad/api.nomad
artifacts:
paths:
- nomad/api.nomad