File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Release
2
2
on :
3
3
push :
4
4
tags :
5
- - v**
5
+ - v**
6
6
env :
7
7
BUILDKIT_IMAGE : jkaninda/mysql-bkup
8
8
jobs :
@@ -12,13 +12,13 @@ jobs:
12
12
packages : write
13
13
contents : read
14
14
steps :
15
- -
15
+ -
16
16
name : Set up QEMU
17
17
uses : docker/setup-qemu-action@v3
18
- -
18
+ -
19
19
name : Set up Docker Buildx
20
20
uses : docker/setup-buildx-action@v3
21
- -
21
+ -
22
22
name : Login to DockerHub
23
23
uses : docker/login-action@v3
24
24
with :
30
30
registry : ghcr.io
31
31
username : ${{ github.actor }}
32
32
password : ${{ secrets.GITHUB_TOKEN }}
33
+ -
34
+ name : Get the tag name
35
+ id : get_tag_name
36
+ run : echo "TAG_NAME=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
33
37
-
34
38
name : Build and push
35
39
uses : docker/build-push-action@v3
38
42
file : " ./docker/Dockerfile"
39
43
platforms : linux/amd64,linux/arm64,linux/arm/v7
40
44
tags : |
41
- "${{env.BUILDKIT_IMAGE}}:${{env.GITHUB_REF_NAME }}"
42
- "${{env.BUILDKIT_IMAGE}}:latest"
43
- "ghcr.io/${{env.BUILDKIT_IMAGE}}:${{env.GITHUB_REF_NAME }}"
44
- "ghcr.io/${{env.BUILDKIT_IMAGE}}:latest"
45
+ "${{env.BUILDKIT_IMAGE}}:${{ env.TAG_NAME }}"
46
+ "${{env.BUILDKIT_IMAGE}}:latest"
47
+ "ghcr.io/${{env.BUILDKIT_IMAGE}}:${{ env.TAG_NAME }}"
48
+ "ghcr.io/${{env.BUILDKIT_IMAGE}}:latest"
45
49
You can’t perform that action at this time.
0 commit comments