File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Tag Docker image
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - ' master'
7
+ tags :
8
+ - ' v*'
9
+
10
+ env :
11
+ REGISTRY : ghcr.io
12
+ IMAGE_NAME : ${{ github.repository }}
13
+
14
+ jobs :
15
+ build :
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ - name : Checkout
19
+ uses : actions/checkout@v2
20
+
21
+ - name : Log into the Container registry
22
+ uses : docker/login-action@v3
23
+ with :
24
+ registry : ${{ env.REGISTRY }}
25
+ username : ${{ github.actor }}
26
+ password : ${{ secrets.GITHUB_TOKEN }}
27
+
28
+ - name : Extract metadata for the Docker image
29
+ id : meta
30
+ uses : docker/metadata-action@v4
31
+ with :
32
+ images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
33
+
34
+ - name : Set up Docker Buildx
35
+ uses : docker/setup-buildx-action@v3
36
+
37
+ - name : Build and push the Docker image
38
+ uses : docker/build-push-action@v4
39
+ with :
40
+ context : .
41
+ push : true
42
+ tags : ${{ steps.meta.outputs.tags }}
43
+ labels : ${{ steps.meta.outputs.labels }}
44
+ platforms : linux/amd64,linux/arm64
You can’t perform that action at this time.
0 commit comments