initial commit #34
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| env: | |
| VERSION: ${{ github.ref_name }} | |
| jobs: | |
| build_and_push: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # needed for checkout | |
| id-token: write # needed for keyless signing & google auth | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | |
| - uses: ./.github/actions/repo_access | |
| with: | |
| DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB: ${{ secrets.DEPLOY_KEY_READ_VENAFI_CONNECTION_LIB }} | |
| - id: go-version | |
| run: | | |
| make print-go-version >> "$GITHUB_OUTPUT" | |
| - uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 | |
| with: | |
| registry: quay.io | |
| username: ${{ secrets.QUAY_USERNAME }} | |
| password: ${{ secrets.QUAY_PASSWORD }} | |
| - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.0 | |
| with: | |
| go-version: ${{ steps.go-version.outputs.result }} | |
| - id: release | |
| run: make release ark-release ngts-release | |
| outputs: | |
| RELEASE_OCI_PREFLIGHT_IMAGE: ${{ steps.release.outputs.RELEASE_OCI_PREFLIGHT_IMAGE }} | |
| RELEASE_OCI_PREFLIGHT_TAG: ${{ steps.release.outputs.RELEASE_OCI_PREFLIGHT_TAG }} | |
| RELEASE_HELM_CHART_IMAGE: ${{ steps.release.outputs.RELEASE_HELM_CHART_IMAGE }} | |
| RELEASE_HELM_CHART_VERSION: ${{ steps.release.outputs.RELEASE_HELM_CHART_VERSION }} | |
| ARK_IMAGE: ${{ steps.release.outputs.ARK_IMAGE }} | |
| ARK_IMAGE_TAG: ${{ steps.release.outputs.ARK_IMAGE_TAG }} | |
| ARK_IMAGE_DIGEST: ${{ steps.release.outputs.ARK_IMAGE_DIGEST }} | |
| ARK_CHART: ${{ steps.release.outputs.ARK_CHART }} | |
| ARK_CHART_TAG: ${{ steps.release.outputs.ARK_CHART_TAG }} | |
| ARK_CHART_DIGEST: ${{ steps.release.outputs.ARK_CHART_DIGEST }} | |
| NGTS_IMAGE: ${{ steps.release.outputs.NGTS_IMAGE }} | |
| NGTS_IMAGE_TAG: ${{ steps.release.outputs.NGTS_IMAGE_TAG }} | |
| NGTS_IMAGE_DIGEST: ${{ steps.release.outputs.NGTS_IMAGE_DIGEST }} | |
| NGTS_CHART: ${{ steps.release.outputs.NGTS_CHART }} | |
| NGTS_CHART_TAG: ${{ steps.release.outputs.NGTS_CHART_TAG }} | |
| NGTS_CHART_DIGEST: ${{ steps.release.outputs.NGTS_CHART_DIGEST }} | |
| github_release: | |
| runs-on: ubuntu-latest | |
| needs: build_and_push | |
| permissions: | |
| contents: write # needed for creating a PR | |
| pull-requests: write # needed for creating a PR | |
| steps: | |
| - run: | | |
| touch .notes-file | |
| echo "OCI_PREFLIGHT_IMAGE: ${{ needs.build_and_push.outputs.RELEASE_OCI_PREFLIGHT_IMAGE }}" >> .notes-file | |
| echo "OCI_PREFLIGHT_TAG: ${{ needs.build_and_push.outputs.RELEASE_OCI_PREFLIGHT_TAG }}" >> .notes-file | |
| echo "HELM_CHART_IMAGE: ${{ needs.build_and_push.outputs.RELEASE_HELM_CHART_IMAGE }}" >> .notes-file | |
| echo "HELM_CHART_VERSION: ${{ needs.build_and_push.outputs.RELEASE_HELM_CHART_VERSION }}" >> .notes-file | |
| echo "ARK_IMAGE: ${{ needs.build_and_push.outputs.ARK_IMAGE }}" >> .notes-file | |
| echo "ARK_IMAGE_TAG: ${{ needs.build_and_push.outputs.ARK_IMAGE_TAG }}" >> .notes-file | |
| echo "ARK_IMAGE_DIGEST: ${{ needs.build_and_push.outputs.ARK_IMAGE_DIGEST }}" >> .notes-file | |
| echo "ARK_CHART: ${{ needs.build_and_push.outputs.ARK_CHART }}" >> .notes-file | |
| echo "ARK_CHART_TAG: ${{ needs.build_and_push.outputs.ARK_CHART_TAG }}" >> .notes-file | |
| echo "ARK_CHART_DIGEST: ${{ needs.build_and_push.outputs.ARK_CHART_DIGEST }}" >> .notes-file | |
| echo "NGTS_IMAGE: ${{ needs.build_and_push.outputs.NGTS_IMAGE }}" >> .notes-file | |
| echo "NGTS_IMAGE_TAG: ${{ needs.build_and_push.outputs.NGTS_IMAGE_TAG }}" >> .notes-file | |
| echo "NGTS_IMAGE_DIGEST: ${{ needs.build_and_push.outputs.NGTS_IMAGE_DIGEST }}" >> .notes-file | |
| echo "NGTS_CHART: ${{ needs.build_and_push.outputs.NGTS_CHART }}" >> .notes-file | |
| echo "NGTS_CHART_TAG: ${{ needs.build_and_push.outputs.NGTS_CHART_TAG }}" >> .notes-file | |
| echo "NGTS_CHART_DIGEST: ${{ needs.build_and_push.outputs.NGTS_CHART_DIGEST }}" >> .notes-file | |
| - env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh release create "$VERSION" \ | |
| --repo="$GITHUB_REPOSITORY" \ | |
| --title="${VERSION}" \ | |
| --draft \ | |
| --verify-tag \ | |
| --notes-file .notes-file |