Skip to content

Commit 272e00f

Browse files
committed
test multi-arch docker build using github actions
1 parent 8f6233b commit 272e00f

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/docker.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Docker build
2+
on:
3+
push: { branches: test }
4+
5+
jobs:
6+
docker:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v4
11+
- name: Set up QEMU
12+
uses: docker/setup-qemu-action@v3
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v3
15+
- name: Login to Docker Hub
16+
uses: docker/login-action@v3
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_TOKEN }}
20+
- name: Build and push
21+
uses: docker/build-push-action@v5
22+
with:
23+
context: .
24+
platforms: linux/amd64,linux/arm64
25+
push: true
26+
tags: dannyben/bashly:test

0 commit comments

Comments
 (0)