From 8c37ffc9a9364740bacb809fb199975d67a4f28a Mon Sep 17 00:00:00 2001 From: aeweda Date: Wed, 13 Nov 2024 20:18:18 +0400 Subject: [PATCH] chore: prune tag for docker image --- .github/workflows/bridge.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bridge.yml b/.github/workflows/bridge.yml index 78b960e98..6df4d6bfc 100644 --- a/.github/workflows/bridge.yml +++ b/.github/workflows/bridge.yml @@ -139,12 +139,14 @@ jobs: # Build Docker images (Latest & TAG) - name: Build TAG - run: docker buildx build -f docker/bridge/Dockerfile --progress=plain --platform linux/amd64,linux/arm64 --tag witnet/witnet-centralized-ethereum-bridge:${{github.ref_name}} docker/bridge + run: | + PRUNED_TAG=$(echo "${{github.ref_name}}" | sed 's/-bridge//') + docker buildx build -f docker/bridge/Dockerfile --progress=plain --platform linux/amd64,linux/arm64 --tag witnet/witnet-centralized-ethereum-bridge:$PRUNED_TAG docker/bridge - name: Check Pre-release run: | TAG=${{ github.ref_name }} - if [[ "$TAG" =~ - ]]; then + if [[ "$TAG" =~ -rc ]]; then echo "prerelease=true" >> $GITHUB_ENV else echo "prerelease=false" >> $GITHUB_ENV