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