Skip to content

Commit 3b32ee6

Browse files
v1vxrmx
authored andcommitted
feat: make published Docker images multi-platform, add linux/arm64 plat (#2080)
1 parent 49852a4 commit 3b32ee6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ jobs:
118118
steps:
119119
- uses: actions/checkout@v4
120120

121+
- name: Set up Docker Buildx
122+
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
123+
121124
- name: Log in to the Elastic Container registry
122125
uses: docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
123126
with:
@@ -142,10 +145,11 @@ jobs:
142145
suffix=${{ contains(matrix.dockerfile, 'wolfi') && '-wolfi' || '' }}
143146
144147
- name: Build and push image
145-
id: push
148+
id: docker-push
146149
uses: docker/build-push-action@1a162644f9a7e87d8f4b053101d1d9a712edc18c # v6.3.0
147150
with:
148151
context: .
152+
platforms: linux/amd64,linux/arm64
149153
push: true
150154
file: ${{ matrix.dockerfile }}
151155
tags: ${{ steps.docker-meta.outputs.tags }}
@@ -157,7 +161,7 @@ jobs:
157161
uses: actions/attest-build-provenance@bdd51370e0416ac948727f861e03c2f05d32d78e # v1.3.2
158162
with:
159163
subject-name: "${{ env.DOCKER_IMAGE_NAME }}"
160-
subject-digest: ${{ steps.push.outputs.digest }}
164+
subject-digest: ${{ steps.docker-push.outputs.digest }}
161165
push-to-registry: true
162166

163167
github-draft:
@@ -196,7 +200,7 @@ jobs:
196200
with:
197201
needs: ${{ toJSON(needs) }}
198202
- if: startsWith(github.ref, 'refs/tags')
199-
uses: elastic/oblt-actions/slack/notify-result@v1.7.0
203+
uses: elastic/oblt-actions/slack/notify-result@v1
200204
with:
201205
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
202206
channel-id: "#apm-agent-python"

0 commit comments

Comments
 (0)