diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index dd8fc18..cbee3af 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -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"