From bf35de6d1242e09e1dd1e020b7ec4451b2a1b1ed Mon Sep 17 00:00:00 2001 From: aunefyren Date: Thu, 21 Dec 2023 10:56:29 +0100 Subject: [PATCH] Update docker-image-beta.yml --- .github/workflows/docker-image-beta.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image-beta.yml b/.github/workflows/docker-image-beta.yml index dc3ef98..a8b3328 100644 --- a/.github/workflows/docker-image-beta.yml +++ b/.github/workflows/docker-image-beta.yml @@ -40,8 +40,10 @@ jobs: registry: ghcr.io username: ${{ github.repository_owner }} password: ${{ secrets.GIT_HUB_TOKEN }} + - name: Hash commit ID + run: GIT_HASH=$(git rev-parse --short "$GITHUB_SHA") - name: Replace version variable - run: sed -i 's/{{RELEASE_TAG}}/beta-${{github.event.ref}}/g' files/config.go # Replace release variable with the name of this release + run: sed -i 's/{{RELEASE_TAG}}/beta-$GIT_HASH/g' files/config.go # Replace release variable with the name of this release - name: Build and push uses: docker/build-push-action@v3 with: