update: version bump #123
Workflow file for this run
This file contains 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 | |
permissions: {} | |
on: | |
push: | |
tags: | |
- "v*" | |
defaults: | |
run: | |
shell: bash | |
env: | |
SKIP_INTEGRATION_TESTS: 'none' # 'none', 'non-required', 'all', 'self-hosted-notary' | |
jobs: | |
conditionals: | |
runs-on: ubuntu-latest | |
outputs: | |
skip_integration_tests: ${{ steps.conditionals.outputs.skip_integration_tests }} | |
steps: | |
- name: CI conditionals | |
id: conditionals | |
run: | | |
echo "skip_integration_tests=${SKIP_INTEGRATION_TESTS}" >> ${GITHUB_OUTPUT} | |
build: | |
uses: ./.github/workflows/.reusable-build.yml | |
permissions: | |
packages: write | |
secrets: inherit | |
version-match: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Ensure version equality | |
run: | | |
IMAGE_TAG=${{ needs.build.outputs.original_tag }} | |
for COMMIT_TAG in $(git tag --points-at $(git rev-parse HEAD)); do | |
if [[ "$IMAGE_TAG" == "$COMMIT_TAG" ]]; then | |
exit 0 | |
fi | |
done | |
echo "Tag '$IMAGE_TAG' is not within tags of commit: $(git tag --points-at $(git rev-parse HEAD))" | |
exit 1 | |
integration-test: | |
uses: ./.github/workflows/.reusable-integration-test.yml | |
needs: [conditionals, build, version-match] | |
permissions: | |
packages: read | |
secrets: inherit | |
with: | |
build_registry: ${{ needs.build.outputs.build_registry }} | |
repo_owner: ${{ github.repository_owner }} | |
build_image_repository: ${{ needs.build.outputs.build_registry }}/${{ needs.build.outputs.build_repo }} | |
build_tag: ${{ needs.build.outputs.build_tag }} | |
skip: ${{ needs.conditionals.outputs.skip_integration_tests }} | |
cosign_public_key: ${{ needs.build.outputs.cosign_public_key }} | |
publish: | |
uses: ./.github/workflows/.reusable-publish.yml | |
needs: [build, version-match, integration-test] | |
permissions: | |
contents: write | |
with: | |
chart_version: ${{ needs.build.outputs.chart_version }} |