From ff8179b8d6c4013b82330ce410751adbbc2adb0b Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 15 Oct 2024 17:41:27 +0200 Subject: [PATCH] add release-tag action with prefix matching --- .forgejo/workflows/release-tag/web.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/release-tag/web.yaml b/.forgejo/workflows/release-tag/web.yaml index dc9f8fe..6064874 100644 --- a/.forgejo/workflows/release-tag/web.yaml +++ b/.forgejo/workflows/release-tag/web.yaml @@ -35,6 +35,14 @@ jobs: echo "PRODUCT_VERSION=$product_version" >> $GITHUB_ENV echo "BUILD_NUMBER=$build_number" >> $GITHUB_ENV + - name: Extract version number from RELEASE_TAG + run: | + VERSION_NUMBER=${{ env.RELEASE_TAG#ws-office- }} + echo "VERSION_NUMBER=$VERSION_NUMBER" >> $GITHUB_ENV + + - name: Print the version number (for debugging) + run: echo "Version number: ${{ env.VERSION_NUMBER }}" + - name: Docker Build uses: https://github.com/docker/build-push-action@v4 env: @@ -49,7 +57,7 @@ jobs: linux/amd64 push: true tags: | - git2.workstreams.ch/workstreams-os/ws-office-dev:${{ env.RELEASE_TAG }} + git2.workstreams.ch/workstreams-os/ws-office-prod:${{ env.VERSION_NUMBER }} # cache-from: type=local,src=/tmp/.buildx-cache # cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max