Skip to content

Commit a4de289

Browse files
committed
chore: fix docker tags for evm-single
1 parent 98124bb commit a4de289

2 files changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/ci_release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ on:
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:

.github/workflows/test.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)