Skip to content

Commit 34412ca

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

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed

.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: 16 additions & 1 deletion
Original file line numberDiff line numberDiff 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

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[submodule "project/lib/forge-std"]
2+
path = project/lib/forge-std
3+
url = https://github.com/foundry-rs/forge-std
4+
[submodule "project/lib/openzeppelin-contracts"]
5+
path = project/lib/openzeppelin-contracts
6+
url = https://github.com/openzeppelin/openzeppelin-contracts

project/lib/forge-std

Submodule forge-std added at 6bce154

project/lib/openzeppelin-contracts

Submodule openzeppelin-contracts added at 005c9c9

0 commit comments

Comments
 (0)