@@ -3,7 +3,7 @@ name: Release Docker Images
33on :
44 push :
55 tags :
6- - ' v* '
6+ - " v* "
77
88permissions :
99 contents : read
@@ -83,39 +83,38 @@ jobs:
8383 --push \
8484 op-deployer
8585
86+ create-manifest :
87+ needs : build-and-push
88+ runs-on : ubuntu-latest
89+ strategy :
90+ matrix :
91+ image :
92+ - based-op-node
93+ - based-op-deployer
8694
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 }}
95+ env :
96+ IMAGE_REG : ghcr.io/${{ github.repository }}
9897
99- steps :
100- - uses : docker/login-action@v3
101- with :
102- registry : ghcr.io
103- username : ${{ github.actor }}
104- password : ${{ secrets.GITHUB_TOKEN }}
98+ steps :
99+ - uses : docker/login-action@v3
100+ with :
101+ registry : ghcr.io
102+ username : ${{ github.actor }}
103+ password : ${{ secrets.GITHUB_TOKEN }}
105104
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
105+ - name : Create & Push Multi-Arch Manifests
106+ run : |
107+ ghcr="ghcr.io/${{ github.repository }}"
108+ tag="${{ github.ref_name }}"
109+ name="${{ matrix.image }}"
110+ # Use buildx imagetools to create multi-arch manifest
111+ docker buildx imagetools create \
112+ --tag $ghcr/$name:$tag \
113+ $ghcr/$name:$tag-amd64 \
114+ $ghcr/$name:$tag-arm64
115+ if [[ ! "$tag" =~ "rc" ]]; then
112116 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
117+ --tag $ghcr/$name:latest \
118+ $ghcr/$name:latest-amd64 \
119+ $ghcr/$name:latest-arm64
120+ fi
0 commit comments