Skip to content

Commit

Permalink
chore: prune tag for docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
aeweda committed Nov 13, 2024
1 parent 6d54332 commit 8c37ffc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8c37ffc

Please sign in to comment.