1 parent 3797c76 commit 1c13373Copy full SHA for 1c13373
1 file changed
.github/workflows/docker-image.yml
@@ -0,0 +1,31 @@
1
+name: Build and Push Docker Image
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - test
7
8
+jobs:
9
+ build:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - name: Checkout repository
14
+ uses: actions/checkout@v2
15
16
+ - name: Set up Docker Buildx
17
+ uses: docker/setup-buildx-action@v1
18
19
+ - name: Log in to GitHub Container Registry
20
+ uses: docker/login-action@v2
21
+ with:
22
+ registry: ghcr.io
23
+ username: ${{ github.actor }}
24
+ password: ${{ secrets.GHCR_PAT }}
25
26
+ - name: Build and push Docker image
27
+ uses: docker/build-push-action@v2
28
29
+ context: .
30
+ push: true
31
+ tags: ghcr.io/${{ github.repository_owner }}/tim:latest
0 commit comments