Skip to content

Commit b290e48

Browse files
committed
Matrix build all targets
1 parent a7c7040 commit b290e48

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci-pipeline.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,12 @@ jobs:
5858
# This is used to complete the identity challenge
5959
# with sigstore/fulcio when running outside of PRs.
6060
id-token: write
61-
61+
strategy:
62+
matrix:
63+
docker_target:
64+
- http_app
65+
- socketio_app
66+
- dramatiq_app
6267
steps:
6368
- name: Checkout repository
6469
uses: actions/checkout@v4
@@ -91,7 +96,7 @@ jobs:
9196
with:
9297
# list of Docker images to use as base name for tags
9398
images: |
94-
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
99+
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}/${{ env.IMAGE_NAME }}-${{ matrix.docker_target }}
95100
# generate Docker tags based on the following events/attributes
96101
tags: |
97102
type=sha
@@ -105,7 +110,7 @@ jobs:
105110
uses: docker/[email protected]
106111
with:
107112
context: .
108-
target: http_app
113+
target: ${{ matrix.docker_target }}
109114
platforms: linux/amd64,linux/arm64
110115
push: true
111116
tags: ${{ steps.meta.outputs.tags }}

0 commit comments

Comments
 (0)