Skip to content

Commit 7c72ab9

Browse files
committed
matrix
1 parent 735b991 commit 7c72ab9

1 file changed

Lines changed: 7 additions & 17 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ jobs:
1717
build-and-push:
1818
strategy:
1919
matrix:
20+
image:
21+
- name: op-node
22+
context: based
23+
- name: op-deployer
24+
context: based
2025
platform:
2126
- arch: amd64
2227
runner: ubuntu-latest
@@ -55,21 +60,7 @@ jobs:
5560
echo "git_commit=$GIT_COMMIT" >> $GITHUB_OUTPUT
5661
echo "git_date=$GIT_DATE" >> $GITHUB_OUTPUT
5762
58-
- name: Build & Push op-node
59-
run: |
60-
IMAGE_TAGS=${{ steps.meta.outputs.tag_name }}-${{ matrix.platform.arch }},${{ !contains(github.ref_name, 'rc') && format('latest-{0}', matrix.platform.arch) || '' }} \
61-
GIT_COMMIT=${{ steps.meta.outputs.git_commit }} \
62-
GIT_DATE=${{ steps.meta.outputs.git_date }} \
63-
GIT_VERSION=${{ steps.meta.outputs.tag_name }} \
64-
REGISTRY=ghcr.io \
65-
REPOSITORY=gattaca-com/based-optimism \
66-
PLATFORMS=linux/${{ matrix.platform.arch == 'arm64' && 'arm64/v8' || matrix.platform.arch }} \
67-
docker buildx bake \
68-
-f docker-bake.hcl \
69-
--push \
70-
op-node
71-
72-
- name: Build & Push op-deployer
63+
- name: Build & Push ${{ matrix.image.name }}
7364
run: |
7465
IMAGE_TAGS=${{ steps.meta.outputs.tag_name }}-${{ matrix.platform.arch }},${{ !contains(github.ref_name, 'rc') && format('latest-{0}', matrix.platform.arch) || '' }} \
7566
GIT_COMMIT=${{ steps.meta.outputs.git_commit }} \
@@ -81,8 +72,7 @@ jobs:
8172
docker buildx bake \
8273
-f docker-bake.hcl \
8374
--push \
84-
op-deployer
85-
75+
${{ matrix.image.name }}
8676
8777
create-manifest:
8878
needs: build-and-push

0 commit comments

Comments
 (0)