We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 17c98a8 commit 6ddf9d2Copy full SHA for 6ddf9d2
1 file changed
.github/workflows/docker-build.yml
@@ -0,0 +1,29 @@
1
+name: Build and Push Docker Image
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v4
15
16
+ - name: Log in to GitHub Container Registry
17
+ uses: docker/login-action@v3
18
+ with:
19
+ registry: ghcr.io
20
+ username: ${{ github.actor }}
21
+ password: ${{ secrets.GITHUB_TOKEN }}
22
23
+ - name: Build Docker Image
24
+ run: |
25
+ docker build -t ghcr.io/${{ github.repository }}:${{ github.ref_name }} .
26
27
+ - name: Push Docker Image to GitHub Container Registry
28
29
+ docker push ghcr.io/${{ github.repository }}:${{ github.ref_name }}
0 commit comments