Skip to content

Commit 87b69b1

Browse files
committed
action: add docker build
1 parent 7c0694e commit 87b69b1

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
on:
2+
push:
3+
branches:
4+
- "*"
5+
tags:
6+
- "*"
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v4
15+
-
16+
name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v3
18+
-
19+
name: Login to Registry
20+
uses: docker/login-action@v3
21+
with:
22+
registry: ghcr.io
23+
username: ${{ secrets.DOCKERHUB_USERNAME }}
24+
password: ${{ secrets.DOCKERHUB_TOKEN }}
25+
-
26+
name: Build and push
27+
uses: docker/build-push-action@v6
28+
with:
29+
context: .
30+
file: ./Dockerfile
31+
platforms: linux/amd64, linux/arm64
32+
push: true
33+
tags: ghcr.io/returntofirst/xunity-autotranslator-openai:latest

0 commit comments

Comments
 (0)