File tree Expand file tree Collapse file tree 2 files changed +18
-3
lines changed Expand file tree Collapse file tree 2 files changed +18
-3
lines changed 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,29 @@ 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+ else
72+ echo "should-push=false" >> $GITHUB_OUTPUT
73+ echo "docker-tag=$TAG" >> $GITHUB_OUTPUT
74+ fi
75+
6276 - name : Build and push ev-node-evm-single Docker image
77+ if : steps.check-tag.outputs.should-push == 'true'
6378 uses : docker/build-push-action@v6
6479 with :
6580 context : .
6681 file : apps/evm/single/Dockerfile
6782 push : true
6883 platforms : linux/amd64,linux/arm64
69- tags : ghcr.io/${{ github.repository_owner }}/ev-node-evm-single:${{ inputs.image -tag }}
84+ tags : ghcr.io/${{ github.repository_owner }}/ev-node-evm-single:${{ steps.check-tag.outputs.docker -tag }}
7085
7186 build-local-da-image :
7287 name : Build local-da Docker Image
You can’t perform that action at this time.
0 commit comments