Commit 7496a2d 1 parent b807130 commit 7496a2d Copy full SHA for 7496a2d
File tree 1 file changed +67
-0
lines changed
1 file changed +67
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*.*.*"
7
+
8
+ env :
9
+ TAG : ${{ github.ref_name }}
10
+ REGISTRY : ghcr.io
11
+ ORG : ${{ github.repository_owner }}
12
+
13
+ jobs :
14
+ build :
15
+ runs-on : ubuntu-latest
16
+ permissions :
17
+ contents : read
18
+ packages : write
19
+ steps :
20
+ - name : Checkout
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
24
+ - name : setupGo
25
+ uses : actions/setup-go@v4
26
+ with :
27
+ go-version : ' =1.19.4'
28
+ - name : Docker login
29
+ uses : docker/login-action@v2
30
+ with :
31
+ registry : ${{ env.REGISTRY }}
32
+ username : ${{ github.actor }}
33
+ password : ${{ secrets.GITHUB_TOKEN }}
34
+ - name : Build docker image
35
+ run : make docker-build-all TAG=${{ env.TAG }} ORG=${{ env.ORG }}
36
+ - name : Push docker image
37
+ run : make docker-push-all TAG=${{ env.TAG }} PROD_REGISTRY=${{ env.REGISTRY }} ORG=${{ env.ORG }}
38
+ release :
39
+ runs-on : ubuntu-latest
40
+ permissions :
41
+ contents : write
42
+ needs : [build]
43
+ steps :
44
+ - name : Checkout
45
+ uses : actions/checkout@v3
46
+ with :
47
+ fetch-depth : 0
48
+ - name : setupGo
49
+ uses : actions/setup-go@v4
50
+ with :
51
+ go-version : ' =1.20.11'
52
+ - name : Update manifests
53
+ run : |
54
+ make release RELEASE_TAG=${{ env.TAG }} ORG=${{ env.ORG }}
55
+ - name : Release
56
+ uses : softprops/action-gh-release@v1
57
+ with :
58
+ prerelease : false
59
+ draft : true
60
+ fail_on_unmatched_files : true
61
+ generate_release_notes : true
62
+ discussion_category_name : Announcements
63
+ name : ${{ env.TAG }}
64
+ files : |
65
+ out/metadata.yaml
66
+ out/bootstrap-components.yaml
67
+ out/control-plane-components.yaml
You can’t perform that action at this time.
0 commit comments