2424 runner : ubuntu-24.04-arm
2525 fail-fast : false
2626
27- name : Build & Push op-node (${{ matrix.platform.arch }})
27+ name : Build & Push op services (${{ matrix.platform.arch }})
2828 runs-on : ${{ matrix.platform.runner }}
2929 env :
3030 IMAGE_REG : ghcr.io/gattaca-com/based-optimism
@@ -48,13 +48,11 @@ jobs:
4848 # Extract tag name (remove refs/tags/ prefix)
4949 TAG_NAME=${GITHUB_REF#refs/tags/}
5050 echo "tag_name=$TAG_NAME" >> $GITHUB_OUTPUT
51-
5251 # Extract git commit and date
5352 GIT_COMMIT=$(git rev-parse HEAD)
5453 GIT_DATE=$(git log -1 --format=%ct)
5554 echo "git_commit=$GIT_COMMIT" >> $GITHUB_OUTPUT
5655 echo "git_date=$GIT_DATE" >> $GITHUB_OUTPUT
57-
5856 - name : Build & Push op-node
5957 run : |
6058 IMAGE_TAGS=${{ steps.meta.outputs.tag_name }}-${{ matrix.platform.arch }},${{ !contains(github.ref_name, 'rc') && format('latest-{0}', matrix.platform.arch) || '' }} \
6866 -f docker-bake.hcl \
6967 --push \
7068 op-node
71-
7269 - name : Build & Push op-deployer
7370 run : |
7471 IMAGE_TAGS=${{ steps.meta.outputs.tag_name }}-${{ matrix.platform.arch }},${{ !contains(github.ref_name, 'rc') && format('latest-{0}', matrix.platform.arch) || '' }} \
@@ -82,40 +79,38 @@ jobs:
8279 -f docker-bake.hcl \
8380 --push \
8481 op-deployer
82+ create-manifest :
83+ needs : build-and-push
84+ runs-on : ubuntu-latest
85+ strategy :
86+ matrix :
87+ image :
88+ - op-node
89+ - op-deployer
8590
91+ env :
92+ IMAGE_REG : ghcr.io/${{ github.repository }}
8693
87- create-manifest :
88- needs : build-and-push
89- runs-on : ubuntu-latest
90- strategy :
91- matrix :
92- image :
93- - based-op-node
94- - based-op-deployer
95-
96- env :
97- IMAGE_REG : ghcr.io/${{ github.repository }}
98-
99- steps :
100- - uses : docker/login-action@v3
101- with :
102- registry : ghcr.io
103- username : ${{ github.actor }}
104- password : ${{ secrets.GITHUB_TOKEN }}
94+ steps :
95+ - uses : docker/login-action@v3
96+ with :
97+ registry : ghcr.io
98+ username : ${{ github.actor }}
99+ password : ${{ secrets.GITHUB_TOKEN }}
105100
106- - name : Create & Push Multi-Arch Manifests
107- run : |
108- ghcr="ghcr.io/${{ github.repository }}"
109- tag="${{ github.ref_name }}"
110- name="${{ matrix.image }}"
111- # Use buildx imagetools to create multi-arch manifest
101+ - name : Create & Push Multi-Arch Manifests
102+ run : |
103+ ghcr="ghcr.io/${{ github.repository }}"
104+ tag="${{ github.ref_name }}"
105+ name="${{ matrix.image }}"
106+ # Use buildx imagetools to create multi-arch manifest
107+ docker buildx imagetools create \
108+ --tag $ghcr/based-$name:$tag \
109+ $ghcr/$name:$tag-amd64 \
110+ $ghcr/$name:$tag-arm64
111+ if [[ ! "$tag" =~ "rc" ]]; then
112112 docker buildx imagetools create \
113- --tag $ghcr/$name:$tag \
114- $ghcr/$name:$tag-amd64 \
115- $ghcr/$name:$tag-arm64
116- if [[ ! "$tag" =~ "rc" ]]; then
117- docker buildx imagetools create \
118- --tag $ghcr/$name:latest \
119- $ghcr/$name:latest-amd64 \
120- $ghcr/$name:latest-arm64
121- fi
113+ --tag $ghcr/based-$name:latest \
114+ $ghcr/$name:latest-amd64 \
115+ $ghcr/$name:latest-arm64
116+ fi
0 commit comments