diff options
| author | Jesper Jensen <jesper@jnsn.dev> | 2025-04-12 15:53:45 +0200 |
|---|---|---|
| committer | Jesper Jensen <jesper@jnsn.dev> | 2025-04-12 15:53:45 +0200 |
| commit | 8c76e9a67290e786d7f233a183cf3b02e55acf17 (patch) | |
| tree | 77480b54caf4c6e66b3098ad23288b7e038e638d /.github/workflows | |
| parent | aac9fc053016d5425d011b37064fd4e8c96b47b0 (diff) | |
Separate the master build from whatever elsetest-staging
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/docker-image.yml | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 139627d..460a182 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -27,7 +27,13 @@ jobs: - name: Push the image run: | - docker tag app ghcr.io/delusionallogic/dht:1.${{ github.run_number }} - docker push ghcr.io/delusionallogic/dht:1.${{ github.run_number }} + docker tag app ghcr.io/delusionallogic/dht:$VERSION + docker push ghcr.io/delusionallogic/dht:$VERSION + env: + VERSION: 1.${{ github.run_number }}${{ github.ref != 'refs/heads/master' && '-NIGHTLY' || '' }} + + - name: Push a latest tag + if: ${{ github.ref == 'refs/heads/master' }} + run: | docker tag app ghcr.io/delusionallogic/dht:latest docker push ghcr.io/delusionallogic/dht:latest |
