CI: force Nomad redeploy by injecting SHA image tag
All checks were successful
Build and Deploy PunktFri / build-and-deploy (push) Successful in 1m7s

This commit is contained in:
Henrik Jess Nielsen
2026-04-28 21:50:10 +02:00
parent 5fc893755f
commit dfb937e7cc

View File

@@ -44,7 +44,10 @@ jobs:
NOMAD_ADDR: "https://nomad.i80.dk:4646" NOMAD_ADDR: "https://nomad.i80.dk:4646"
- name: Deploy to Nomad - 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: env:
NOMAD_ADDR: "https://nomad.i80.dk:4646" NOMAD_ADDR: "https://nomad.i80.dk:4646"