File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Docker Build and Push
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " *"
7
+
8
+ concurrency :
9
+ group : " docker-image"
10
+ cancel-in-progress : false
11
+
12
+ jobs :
13
+ docker :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set up QEMU
19
+ uses : docker/setup-qemu-action@v3
20
+
21
+ - name : Set up Docker Buildx
22
+ uses : docker/setup-buildx-action@v3
23
+
24
+
25
+ - name : Log in to Docker Hub
26
+ uses : docker/login-action@v3
27
+ with :
28
+ username : ${{ github.actor }}
29
+ password : ${{ secrets.GH_TOKEN }}
30
+
31
+ - name : Build and push
32
+ uses : docker/build-push-action@v5
33
+ with :
34
+ push : true
35
+ tags : ghcr.io/${{ github.repository }}:latest,ghcr.io/${{ github.repository }}:${{ github.ref_name }}
36
+ platforms : linux/amd64,linux/arm64
37
+
You can’t perform that action at this time.
0 commit comments