Skip to content

Commit d67b5ef

Browse files
committed
correct release
1 parent be119bb commit d67b5ef

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

.github/workflows/release.yml

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -83,38 +83,39 @@ jobs:
8383
--push \
8484
op-deployer
8585
86-
create-manifest:
87-
needs: build-and-push
88-
runs-on: ubuntu-latest
89-
env:
90-
IMAGE_REG: ghcr.io/gattaca-com/based-optimism
9186
92-
steps:
93-
- name: Log in to Container Registry
94-
uses: docker/login-action@v3
95-
with:
96-
registry: ghcr.io
97-
username: ${{ github.actor }}
98-
password: ${{ secrets.GITHUB_TOKEN }}
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
9995

100-
- name: Create & Push Multi-Arch Manifests
101-
run: |
102-
ghcr="ghcr.io/gattaca-com/based-optimism"
103-
tag="${{ github.ref_name }}"
96+
env:
97+
IMAGE_REG: ghcr.io/${{ github.repository }}
10498

105-
# Use buildx imagetools to create multi-arch manifest
106-
docker buildx imagetools create \
107-
--tag $ghcr/based-op-node:$tag \
108-
$ghcr/based-op-node:$tag-amd64 \
109-
$ghcr/based-op-node:$tag-arm64 \
110-
$ghcr/based-op-deployer:$tag-amd64 \
111-
$ghcr/based-op-deployer:$tag-arm64 \
99+
steps:
100+
- uses: docker/login-action@v3
101+
with:
102+
registry: ghcr.io
103+
username: ${{ github.actor }}
104+
password: ${{ secrets.GITHUB_TOKEN }}
112105

113-
if [[ ! "$tag" =~ "rc" ]]; then
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
114112
docker buildx imagetools create \
115-
--tag $ghcr/based-op-node:latest \
116-
$ghcr/based-op-node:latest-amd64 \
117-
$ghcr/based-op-node:latest-arm64 \
118-
$ghcr/based-op-deployer:latest-amd64 \
119-
$ghcr/based-op-deployer:latest-arm64
120-
fi
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

0 commit comments

Comments
 (0)