chore: Bump Karpetner version for v0.32.7 release (#5636) #789
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 | |
on: | |
push: | |
# Only release on supported semantic version tagging e.g. v0.0.1-rc.0 | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+' | |
- 'v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+' | |
jobs: | |
release: | |
permissions: | |
id-token: write # aws-actions/[email protected] | |
contents: write # marvinpinto/[email protected] | |
pull-requests: write # name: Create PR | |
if: github.repository == 'aws/karpenter-provider-aws' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Create GitHub Release | |
uses: 'marvinpinto/action-automatic-releases@latest' | |
with: | |
repo_token: '${{ secrets.GITHUB_TOKEN }}' | |
prerelease: false | |
- id: tag | |
run: | | |
TAG="$(git describe --tags --exact-match)" | |
echo TAG="${TAG}" >> "$GITHUB_OUTPUT" | |
- uses: ./.github/actions/install-deps | |
- uses: ./.github/actions/e2e/install-helm | |
with: | |
version: v3.12.3 # Pinned to this version since v3.13.0 has issues with pushing to public ECR: https://github.com/helm/helm/issues/12442 | |
- uses: aws-actions/[email protected] | |
with: | |
role-to-assume: 'arn:aws:iam::${{ vars.RELEASE_ACCOUNT_ID }}:role/${{ vars.RELEASE_ROLE_NAME }}' | |
aws-region: ${{ vars.RELEASE_REGION }} | |
- run: make release | |
- uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1 | |
with: | |
role-to-assume: 'arn:aws:iam::${{ vars.READONLY_ACCOUNT_ID }}:role/${{ vars.READONLY_ROLE_NAME }}' | |
aws-region: ${{ vars.READONLY_REGION }} | |
- run: make docgen | |
- run: make prepare-website | |
- run: make stable-release-pr | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_REPO: ${{ github.repository }} | |
- name: Create PR | |
if: steps.tag.outputs.TAG != 'no tag' | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
const { repo, owner } = context.repo; | |
const result = await github.rest.pulls.create({ | |
title: 'chore: Release ${{ steps.tag.outputs.TAG }}', | |
owner, | |
repo, | |
head: 'release-${{ steps.tag.outputs.TAG }}', | |
base: 'main', | |
body: [ | |
'Stable Release Changes for ${{ steps.tag.outputs.TAG }}.', | |
'Please disregard this PR if it is for a patch release.', | |
'Please remove the branch after merging.', | |
'This PR is generated by [StableRelease](https://github.com/aws/karpenter/actions/workflows/stable-release.yml).' | |
].join('\n') | |
}); | |
github.rest.issues.addLabels({ | |
owner, | |
repo, | |
issue_number: result.data.number, | |
labels: ['stable-release','website','helm-charts'] | |
}); |