Skip to content

Commit 8e3ac62

Browse files
committed
Add test github action
1 parent 9eadb9b commit 8e3ac62

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
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

Comments
 (0)