aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/publish.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 2138014..5fc412d 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -22,10 +22,12 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
+ - name: Generate tag
+ run: echo "CUSTOM_DOCKER_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
- name: Build and push central Docker image
uses: docker/build-push-action@v2.2.1
with:
- tags: ghcr.io/Trumeet/dn42peering:${GITHUB_REF##*/}
+ tags: ghcr.io/Trumeet/dn42peering:$CUSTOM_DOCKER_TAG
push: true
build_agent:
runs-on: ubuntu-latest