Skip to content

Commit b0604f3

Browse files
committed
Create a new Github Action to publish multi-arch images to DockerHub
1 parent 74f303d commit b0604f3

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: Publish image to DockerHub
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Docker Buildx
14+
uses: docker/setup-buildx-action@v2
15+
16+
- name: Set up QEMU
17+
uses: docker/setup-qemu-action@v2
18+
19+
- name: Login to Docker Hub
20+
uses: docker/login-action@v2
21+
with:
22+
username: ${{ secrets.DOCKER_USERNAME }}
23+
password: ${{ secrets.DOCKER_PASSWORD }}
24+
25+
- name: Build and push
26+
uses: docker/build-push-action@v3
27+
with:
28+
push: true
29+
platforms: linux/amd64,linux/arm64
30+
tags: getmeili/docs-scraper:latest,getmeili/docs-scraper:${{ github.ref_name }}

0 commit comments

Comments
 (0)