Skip to content

Commit 1533f60

Browse files
committed
add docker build and push workflow
1 parent 19ba41d commit 1533f60

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Docker Publish
2+
3+
on:
4+
push:
5+
branches: [main]
6+
release:
7+
types: [created]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Login to Docker Hub
17+
uses: docker/login-action@v2
18+
with:
19+
username: masci
20+
password: ${{ secrets.DOCKERHUB_TOKEN }}
21+
22+
- name: Set up QEMU
23+
uses: docker/setup-qemu-action@v2
24+
25+
- name: Docker meta
26+
id: meta
27+
uses: docker/metadata-action@v4
28+
with:
29+
images: masci/roy
30+
31+
- name: Build and push
32+
uses: docker/build-push-action@v4
33+
with:
34+
context: .
35+
platforms: linux/amd64,linux/arm64
36+
push: true
37+
tags: ${{ steps.meta.outputs.tags }}
38+
labels: ${{ steps.meta.outputs.labels }}

0 commit comments

Comments
 (0)