summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/docker-image.yml10
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