We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aca71c5 commit 4a8f98bCopy full SHA for 4a8f98b
.github/workflows/docker-image.yml
.github/workflows/docker-publish.yml
@@ -0,0 +1,32 @@
1
+name: Publish Docker image to GHCR
2
+
3
+on:
4
+ push:
5
+ branches: [main]
6
7
+permissions:
8
+ contents: read
9
+ packages: write
10
11
+jobs:
12
+ publish:
13
+ runs-on: ubuntu-latest
14
15
+ steps:
16
+ - name: Checkout repository
17
+ uses: actions/checkout@v4
18
19
+ - name: Log in to GitHub Container Registry
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 Docker image
27
+ run: |
28
+ docker build -t ghcr.io/${{ github.repository }}:latest .
29
30
+ - name: Push Docker image
31
32
+ docker push ghcr.io/${{ github.repository }}:latest
0 commit comments