Skip to content

Commit d0937b4

Browse files
committed
add a test github buildx action
1 parent bb86e5e commit d0937b4

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: buildx
2+
3+
on:
4+
pull_request:
5+
branches: master
6+
push:
7+
branches: master
8+
tags:
9+
10+
jobs:
11+
buildx:
12+
runs-on: ubuntu-latest
13+
steps:
14+
-
15+
name: Checkout
16+
uses: actions/checkout@v2
17+
-
18+
name: Set up Docker Buildx
19+
id: buildx
20+
uses: crazy-max/ghaction-docker-buildx@v3
21+
with:
22+
buildx-version: latest
23+
qemu-version: latest
24+
-
25+
name: Available platforms
26+
run: echo ${{ steps.buildx.outputs.platforms }}
27+
-
28+
name: Run Buildx
29+
run: |
30+
docker buildx build \
31+
--platform linux/amd64,linux/arm64 \
32+
--output "type=image,push=false" \
33+
--file ./Dockerfile .

0 commit comments

Comments
 (0)