@@ -3,38 +3,55 @@ name: Release
3
3
on :
4
4
push :
5
5
tags :
6
- - " v*"
6
+ - " v*"
7
7
8
8
jobs :
9
9
release :
10
+ name : Release
10
11
runs-on : ubuntu-latest
12
+ defaults :
13
+ run :
14
+ shell : bash
11
15
env :
12
16
DOCKER_CLI_EXPERIMENTAL : " enabled"
13
17
steps :
14
- - name : Set up QEMU
15
- uses : docker/setup-qemu-action@v3
16
- - name : Set up Docker Buildx
17
- uses : docker/setup-buildx-action@v3
18
- - uses : actions/checkout@v4
19
- - uses : actions/setup-go@v5
20
- with :
21
- go-version-file : go.mod
22
- - name : Login to Docker hub
23
- if : ${{ !env.ACT }}
24
- run : docker login -u ${{ secrets.DOCKER_HUB_USER }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
25
- - name : Import GPG key
26
- if : ${{ !env.ACT }}
27
- id : import_gpg
28
- uses : crazy-max/ghaction-import-gpg@v6
29
- with :
30
- gpg_private_key : ${{ secrets.SIGNING_KEY }}
31
- - name : Release Helm-Docs
32
- if : ${{ !env.ACT }}
33
- uses : goreleaser/goreleaser-action@v6
34
- with :
35
- args : release
36
- env :
37
- GITHUB_TOKEN : ${{ secrets.NORWOODJ_ORG_TOKEN }}
38
- GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
39
- - if : always()
40
- run : rm -f ${HOME}/.docker/config.json
18
+ - name : Checkout
19
+ uses : actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
20
+
21
+ - name : Set up QEMU
22
+ uses : docker/setup-qemu-action@5927c834f5b4fdf503fca6f4c7eccda82949e1ee # v3.1.0
23
+
24
+ - name : Set up Docker Buildx
25
+ uses : docker/setup-buildx-action@4fd812986e6c8c2a69e18311145f9371337f27d4 # v3.4.0
26
+
27
+ - name : Setup Go
28
+ uses : actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
29
+ with :
30
+ go-version-file : go.mod
31
+
32
+ - name : Login to DockerHub
33
+ if : ${{ !env.ACT }}
34
+ uses : docker/login-action@0d4c9c5ea7693da7b068278f7b52bda2a190a446 # v3.2.0
35
+ with :
36
+ username : ${{ secrets.DOCKER_HUB_USER }}
37
+ password : ${{ secrets.DOCKER_HUB_PASSWORD }}
38
+
39
+ - name : Import GPG key
40
+ if : ${{ !env.ACT }}
41
+ id : import_gpg
42
+ uses : crazy-max/ghaction-import-gpg@01dd5d3ca463c7f10f7f4f7b4f177225ac661ee4 # v6.1.0
43
+ with :
44
+ gpg_private_key : ${{ secrets.SIGNING_KEY }}
45
+
46
+ - name : Release Helm-Docs
47
+ if : ${{ !env.ACT }}
48
+ uses : goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
49
+ env :
50
+ GITHUB_TOKEN : ${{ secrets.NORWOODJ_ORG_TOKEN }}
51
+ GPG_FINGERPRINT : ${{ steps.import_gpg.outputs.fingerprint }}
52
+ with :
53
+ args : release
54
+
55
+ - name : Cleanup
56
+ if : always()
57
+ run : rm -f ${HOME}/.docker/config.json
0 commit comments