CI: force Nomad redeploy by injecting SHA image tag
All checks were successful
Build and Deploy PunktFri / build-and-deploy (push) Successful in 1m7s
All checks were successful
Build and Deploy PunktFri / build-and-deploy (push) Successful in 1m7s
This commit is contained in:
@@ -44,7 +44,10 @@ jobs:
|
||||
NOMAD_ADDR: "https://nomad.i80.dk:4646"
|
||||
|
||||
- name: Deploy to Nomad
|
||||
run: nomad job run punktfri.nomad
|
||||
run: |
|
||||
# Inject the specific image SHA so Nomad always sees a change
|
||||
sed -i "s|registry.i80.dk/gitea/punktfri:latest|registry.i80.dk/gitea/punktfri:${{ github.sha }}|g" punktfri.nomad
|
||||
nomad job run -detach=false punktfri.nomad
|
||||
env:
|
||||
NOMAD_ADDR: "https://nomad.i80.dk:4646"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user