File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 push :
44 branches :
55 - main
6- # Trigger on version tags
6+ # Trigger on all tags
77 tags :
8- - " v *"
8+ - " *"
99 pull_request :
1010 merge_group :
1111 workflow_dispatch :
Original file line number Diff line number Diff line change @@ -59,14 +59,33 @@ jobs:
5959 username : ${{ github.actor }}
6060 password : ${{ secrets.GITHUB_TOKEN }}
6161
62+ - name : Determine if tag should be pushed
63+ id : check-tag
64+ run : |
65+ TAG="${{ inputs.image-tag }}"
66+ if [[ "$TAG" == sequencers/single/* ]]; then
67+ echo "should-push=true" >> $GITHUB_OUTPUT
68+ # Strip the sequencers/single/ prefix for docker tag
69+ DOCKER_TAG="${TAG#sequencers/single/}"
70+ echo "docker-tag=$DOCKER_TAG" >> $GITHUB_OUTPUT
71+ elif [[ "$TAG" == pr-* ]]; then
72+ echo "should-push=true" >> $GITHUB_OUTPUT
73+ # Keep pr- tags as-is
74+ echo "docker-tag=$TAG" >> $GITHUB_OUTPUT
75+ else
76+ echo "should-push=false" >> $GITHUB_OUTPUT
77+ echo "docker-tag=$TAG" >> $GITHUB_OUTPUT
78+ fi
79+
6280 - name : Build and push ev-node-evm-single Docker image
81+ if : steps.check-tag.outputs.should-push == 'true'
6382 uses : docker/build-push-action@v6
6483 with :
6584 context : .
6685 file : apps/evm/single/Dockerfile
6786 push : true
6887 platforms : linux/amd64,linux/arm64
69- tags : ghcr.io/${{ github.repository_owner }}/ev-node-evm-single:${{ inputs.image -tag }}
88+ tags : ghcr.io/${{ github.repository_owner }}/ev-node-evm-single:${{ steps.check-tag.outputs.docker -tag }}
7089
7190 build-local-da-image :
7291 name : Build local-da Docker Image
You can’t perform that action at this time.
0 commit comments