Skip to content

Commit 5385746

Browse files
leogrpoiana
authored andcommitted
update(.github): switch to multi platform build in one step
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
1 parent 6112610 commit 5385746

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

.github/workflows/publish-main.yaml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,14 @@ jobs:
2828
- name: Set up Docker Buildx
2929
uses: docker/setup-buildx-action@v2
3030

31-
- name: Build and push amd64 image
31+
- name: Build and push multi-platform image
3232
uses: docker/build-push-action@v3
3333
with:
3434
context: .
3535
push: true
36-
platforms: linux/amd64
37-
tags: falcosecurity/event-generator:main-amd64
36+
platforms: linux/amd64,linux/arm64/v8
37+
tags: falcosecurity/event-generator:main
3838
labels: |
3939
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
4040
org.opencontainers.image.name=event-generator
4141
org.opencontainers.image.revision=${{ github.sha }}
42-
43-
- name: Build and push arm64 image
44-
uses: docker/build-push-action@v3
45-
with:
46-
context: .
47-
push: true
48-
platforms: linux/arm64/v8
49-
tags: falcosecurity/event-generator:main-arm64v8
50-
labels: |
51-
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
52-
org.opencontainers.image.name=event-generator
53-
org.opencontainers.image.revision=${{ github.sha }}
54-
55-
- name: Create and push manifest
56-
run: |
57-
docker manifest create falcosecurity/event-generator:main \
58-
falcosecurity/event-generator:main-amd64 \
59-
falcosecurity/event-generator:main-arm64v8
60-
docker manifest push falcosecurity/event-generator:main

0 commit comments

Comments
 (0)