We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0eb847 commit 4cc3c07Copy full SHA for 4cc3c07
1 file changed
.github/workflows/docker-publish.yaml
@@ -0,0 +1,31 @@
1
+name: Publish Docker Image
2
+
3
+on:
4
+ push:
5
+ branches: ['master']
6
+ tags: ['v*']
7
8
+jobs:
9
+ build-and-push:
10
+ runs-on: ubuntu-latest
11
+ permissions:
12
+ contents: read
13
+ packages: write
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v4
18
19
+ - name: Log in to GHCR
20
+ uses: docker/login-action@v3
21
+ with:
22
+ registry: ghcr.io
23
+ username: ${{ github.actor }}
24
+ password: ${{ secrets.GITHUB_TOKEN }}
25
26
+ - name: Build and push
27
+ uses: docker/build-push-action@v5
28
29
+ context: .
30
+ push: true
31
+ tags: ghcr.io/${{ github.repository }}:latest
0 commit comments