From cd49aab3fe66bae37b1858746415ec7aae98a42e Mon Sep 17 00:00:00 2001 From: Fabrice Date: Tue, 15 Oct 2024 18:22:33 +0200 Subject: [PATCH] fix action with prefix matching --- .forgejo/workflows/push/web.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/push/web.yaml b/.forgejo/workflows/push/web.yaml index 9bc56f2..48189fd 100644 --- a/.forgejo/workflows/push/web.yaml +++ b/.forgejo/workflows/push/web.yaml @@ -32,13 +32,21 @@ jobs: release_short_sha="$(git rev-parse --short HEAD)" release_tag="$release_timestamp-$release_short_sha" echo "RELEASE_TAG=$release_tag" >> $GITHUB_ENV - echo "the release tag will be '$release_tag'" + echo "The release tag will be '${release_tag}'" + + - name: Package URL + run: | + package_url="git2.workstreams.ch/workstreams-os/ws-office-dev:${{ env.RELEASE_TAG }}" + echo "PACKAGE_URL=$package_url" >> $GITHUB_ENV + echo "PACKAGE URL: $package_url" - name: Set PRODUCT_VERSION and BUILD_NUMBER run: | export $(grep -v '^#' .env | xargs) echo "PRODUCT_VERSION=$product_version" >> $GITHUB_ENV echo "BUILD_NUMBER=$build_number" >> $GITHUB_ENV + echo "PRODUCT_VERSION: '${product_version}'" + echo "BUILD_NUMBER: '${build_number}'" - name: Docker Build uses: https://github.com/docker/build-push-action@v4 @@ -54,7 +62,7 @@ jobs: linux/amd64 push: true tags: | - git2.workstreams.ch/workstreams-os/ws-office-dev:${{ env.RELEASE_TAG }} + ${{ env.PACKAGE_URL }} # cache-from: type=local,src=/tmp/.buildx-cache # cache-to: type=local,dest=/tmp/.buildx-cache-new,mode=max