We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9eadb9b commit 8e3ac62Copy full SHA for 8e3ac62
.github/workflows/test-docker-image.yml
@@ -0,0 +1,30 @@
1
+name: test-docker-image
2
+
3
+on:
4
+ push:
5
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - name: Checkout
11
+ uses: actions/checkout@v4
12
+ - name: Prepare image metadata
13
+ id: metadata
14
+ uses: docker/metadata-action@v5
15
+ with:
16
+ images: zappi/nginx
17
+ - name: Set up QEMU
18
+ uses: docker/setup-qemu-action@v3
19
+ - name: Set up Docker Buildx
20
+ uses: docker/setup-buildx-action@v3
21
+ - name: Test multi-arch building of image
22
+ uses: docker/build-push-action@v6
23
24
+ cache-from: type=gha
25
+ cache-to: type=gha,mode=max
26
+ context: .
27
+ labels: ${{ steps.metadata.outputs.labels }}
28
+ platforms: linux/amd64,linux/arm64
29
+ push: false
30
+ tags: ${{ steps.metadata.outputs.tags }}
0 commit comments