1 parent d60c438 commit 85d0840Copy full SHA for 85d0840
1 file changed
.github/workflows/docker.yml
@@ -0,0 +1,36 @@
1
+name: Build and Publish Container
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main
7
+ workflow_dispatch:
8
9
+env:
10
+ REGISTRY: ghcr.io
11
+ IMAGE_NAME: ${{ github.repository }}
12
13
+jobs:
14
+ build-and-push:
15
+ runs-on: self-hosted
16
+ permissions:
17
+ contents: read
18
+ packages: write
19
20
+ steps:
21
+ - name: Checkout code
22
+ uses: actions/checkout@v4
23
24
+ - name: Log in to Container Registry
25
+ uses: docker/login-action@v3
26
+ with:
27
+ registry: ${{ env.REGISTRY }}
28
+ username: ${{ github.actor }}
29
+ password: ${{ secrets.GITHUB_TOKEN }}
30
31
+ - name: Build and push image
32
+ uses: docker/build-push-action@v5
33
34
+ context: .
35
+ push: ${{ github.event_name != 'pull_request' }}
36
+ tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-arm
0 commit comments