88 VERSION : ${{ github.ref_name }}
99
1010jobs :
11- build_images :
11+ build_and_push :
1212 runs-on : ubuntu-latest
1313
1414 permissions :
1717
1818 steps :
1919 - uses : actions/checkout@v4
20- with :
21- fetch-depth : 0
2220
2321 - uses : ./.github/actions/repo_access
2422 with :
@@ -28,40 +26,29 @@ jobs:
2826 run : |
2927 make print-go-version >> "$GITHUB_OUTPUT"
3028
31- - uses : actions/setup-go@v5
32- with :
33- go-version : ${{ steps.go-version.outputs.result }}
34-
3529 - uses : docker/login-action@v3
3630 with :
3731 registry : quay.io
38- username : ${{ secrets.QUAY_USER }}
32+ username : ${{ secrets.QUAY_USERNAME }}
3933 password : ${{ secrets.QUAY_PASSWORD }}
40- - uses : docker/login-action@v3
34+
35+ - uses : actions/setup-go@v5
4136 with :
42- registry : ghcr.io
43- username : ${{ github.actor }}
44- password : ${{ secrets.GITHUB_TOKEN }}
37+ go-version : ${{ steps.go-version.outputs.result }}
4538
4639 - id : release
47- run : make -j release
48-
49- - uses : actions/upload-artifact@v4
50- with :
51- name : ${{ steps.release.outputs.RELEASE_HELM_CHART_NAME }}-${{ steps.release.outputs.RELEASE_HELM_CHART_VERSION }}.tgz
52- path : ${{ steps.release.outputs.RELEASE_HELM_CHART_TAR }}
53- if-no-files-found : error
40+ run : make release
5441
5542 outputs :
5643 RELEASE_OCI_PREFLIGHT_IMAGE : ${{ steps.release.outputs.RELEASE_OCI_PREFLIGHT_IMAGE }}
5744 RELEASE_OCI_PREFLIGHT_TAG : ${{ steps.release.outputs.RELEASE_OCI_PREFLIGHT_TAG }}
58- RELEASE_HELM_CHART_NAME : ${{ steps.release.outputs.RELEASE_HELM_CHART_NAME }}
45+ RELEASE_HELM_CHART_IMAGE : ${{ steps.release.outputs.RELEASE_HELM_CHART_IMAGE }}
5946 RELEASE_HELM_CHART_VERSION : ${{ steps.release.outputs.RELEASE_HELM_CHART_VERSION }}
6047
6148 github_release :
6249 runs-on : ubuntu-latest
6350
64- needs : build_images
51+ needs : build_and_push
6552
6653 permissions :
6754 contents : write # needed for creating a PR
@@ -70,15 +57,10 @@ jobs:
7057 steps :
7158 - run : |
7259 touch .notes-file
73- echo "OCI_PREFLIGHT_IMAGE: ${{ needs.build_images.outputs.RELEASE_OCI_PREFLIGHT_IMAGE }}" >> .notes-file
74- echo "OCI_PREFLIGHT_TAG: ${{ needs.build_images.outputs.RELEASE_OCI_PREFLIGHT_TAG }}" >> .notes-file
75- echo "HELM_CHART_NAME: ${{ needs.build_images.outputs.RELEASE_HELM_CHART_NAME }}" >> .notes-file
76- echo "HELM_CHART_VERSION: ${{ needs.build_images.outputs.RELEASE_HELM_CHART_VERSION }}" >> .notes-file
77-
78- - id : chart_download
79- uses : actions/download-artifact@v4
80- with :
81- name : ${{ needs.build_images.outputs.RELEASE_HELM_CHART_NAME }}-${{ needs.build_images.outputs.RELEASE_HELM_CHART_VERSION }}.tgz
60+ echo "OCI_PREFLIGHT_IMAGE: ${{ needs.build_and_push.outputs.RELEASE_OCI_PREFLIGHT_IMAGE }}" >> .notes-file
61+ echo "OCI_PREFLIGHT_TAG: ${{ needs.build_and_push.outputs.RELEASE_OCI_PREFLIGHT_TAG }}" >> .notes-file
62+ echo "HELM_CHART_IMAGE: ${{ needs.build_and_push.outputs.RELEASE_HELM_CHART_IMAGE }}" >> .notes-file
63+ echo "HELM_CHART_VERSION: ${{ needs.build_and_push.outputs.RELEASE_HELM_CHART_VERSION }}" >> .notes-file
8264
8365 - env :
8466 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8971 --draft \
9072 --verify-tag \
9173 --notes-file .notes-file
92-
93- gh release upload "$VERSION" \
94- --repo="$GITHUB_REPOSITORY" \
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