1
- ---
2
1
name : release
3
2
on :
4
3
push :
9
8
VERSION : ${{ github.ref_name }}
10
9
11
10
jobs :
12
- build_images :
11
+ artifacts :
13
12
runs-on : ubuntu-latest
14
13
15
14
permissions :
16
15
contents : read # needed for checkout
17
- packages : write # needed for push images
18
- id-token : write # needed for keyless signing
19
-
20
- env :
21
- GOPRIVATE : github.com/jetstack/venafi-connection-lib
16
+ id-token : write # needed for keyless signing & google auth
22
17
23
18
steps :
24
19
- uses : actions/checkout@v4
20
+ with :
21
+ fetch-depth : 0
22
+
23
+ - uses : ./.github/actions/repo_access
24
+ with :
25
+ DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB : ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}
25
26
26
27
- id : go-version
27
28
run : |
@@ -31,33 +32,19 @@ jobs:
31
32
with :
32
33
go-version : ${{ steps.go-version.outputs.result }}
33
34
34
- - name : Configure jetstack/venafi-connection-lib repo pull access
35
- run : |
36
- mkdir ~/.ssh
37
- chmod 700 ~/.ssh
38
-
39
- echo "${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }}" > ~/.ssh/venafi_connection_lib_id
40
- chmod 600 ~/.ssh/venafi_connection_lib_id
41
-
42
- cat <<EOT >> ~/.ssh/config
43
- Host venafi-connection-lib.github.com
44
- HostName github.com
45
- IdentityFile ~/.ssh/venafi_connection_lib_id
46
- IdentitiesOnly yes
47
- EOT
48
-
49
- cat <<EOT >> ~/.gitconfig
50
- [url "[email protected] :jetstack/venafi-connection-lib"]
51
- insteadOf = https://github.com/jetstack/venafi-connection-lib
52
- EOT
53
-
54
- - uses : actions/cache@v4
35
+ - uses : docker/login-action@v3
55
36
with :
56
- path : _bin/downloaded
57
- key : downloaded-${{ runner.os }}-${{ hashFiles('make/_shared/tools/00_mod.mk') }}-${{ hashFiles('make/_shared/kind/00_kind_image_versions.mk') }}
37
+ registry : quay.io
38
+ username : ${{ secrets.QUAY_USER }}
39
+ password : ${{ secrets.QUAY_PASSWORD }}
40
+ - uses : docker/login-action@v3
41
+ with :
42
+ registry : ghcr.io
43
+ username : ${{ github.actor }}
44
+ password : ${{ secrets.GITHUB_TOKEN }}
58
45
59
46
- id : release
60
- run : make release
47
+ run : make -j release
61
48
62
49
- uses : actions/upload-artifact@v4
63
50
with :
102
89
--draft \
103
90
--verify-tag \
104
91
--notes-file .notes-file
105
-
92
+
106
93
gh release upload "$VERSION" \
107
94
--repo="$GITHUB_REPOSITORY" \
108
95
"${{ steps.chart_download.outputs.download-path }}/${{ needs.build_images.outputs.RELEASE_HELM_CHART_NAME }}-${{ needs.build_images.outputs.RELEASE_HELM_CHART_VERSION }}.tgz"
0 commit comments