Skip to content

Commit 0636c8f

Browse files
committed
Add test github action workflow
1 parent 9eadb9b commit 0636c8f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: test-docker-image
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- 'master'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
- name: Prepare image metadata
15+
id: metadata
16+
uses: docker/metadata-action@v5
17+
with:
18+
images: zappi/nginx
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v3
21+
- name: Set up Docker Buildx
22+
uses: docker/setup-buildx-action@v3
23+
- name: Test multi-arch building of image
24+
uses: docker/build-push-action@v6
25+
with:
26+
cache-from: type=gha
27+
cache-to: type=gha,mode=max
28+
context: .
29+
labels: ${{ steps.metadata.outputs.labels }}
30+
platforms: linux/amd64,linux/arm64
31+
push: false
32+
tags: ${{ steps.metadata.outputs.tags }}

0 commit comments

Comments
 (0)