Skip to content

Commit 7b26a1d

Browse files
committed
Revert "fix release script. wrong indentation"
This reverts commit 420151a.
1 parent 420151a commit 7b26a1d

1 file changed

Lines changed: 33 additions & 32 deletions

File tree

.github/workflows/release.yml

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Docker Images
33
on:
44
push:
55
tags:
6-
- "v*"
6+
- 'v*'
77

88
permissions:
99
contents: read
@@ -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-
strategy:
90-
matrix:
91-
image:
92-
- based-op-node
93-
- based-op-deployer
9486
95-
env:
96-
IMAGE_REG: ghcr.io/${{ github.repository }}
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
9795

98-
steps:
99-
- uses: docker/login-action@v3
100-
with:
101-
registry: ghcr.io
102-
username: ${{ github.actor }}
103-
password: ${{ secrets.GITHUB_TOKEN }}
96+
env:
97+
IMAGE_REG: ghcr.io/${{ github.repository }}
10498

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
99+
steps:
100+
- uses: docker/login-action@v3
101+
with:
102+
registry: ghcr.io
103+
username: ${{ github.actor }}
104+
password: ${{ secrets.GITHUB_TOKEN }}
105+
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
116112
docker buildx imagetools create \
117-
--tag $ghcr/$name:latest \
118-
$ghcr/$name:latest-amd64 \
119-
$ghcr/$name: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)