Create Studio Release Candidate #401
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: Rasa Studio Release Candidate | |
run-name: Create Studio Release Candidate | |
on: | |
push: | |
branches: | |
- release/* | |
paths: | |
- charts/studio/** | |
- '!charts/rasa/**' | |
- '!charts/op-kits/**' | |
- replicated/** | |
jobs: | |
check-chart-versions: | |
name: Check chart versions | |
runs-on: ubuntu-24.04 | |
outputs: | |
studio-version: ${{ steps.studio-chart-info.outputs.version }} | |
release-candidate: ${{ steps.check-rc.outputs.rc }} | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
- name: Read Rasa Studio chart | |
id: studio-chart-info | |
uses: miraai/read-helm-chart-yaml@9a798908719da8d062b86097d4ff1ad85abfc7aa | |
with: | |
path: charts/studio/ | |
- name: Check Rasa Studio chart version | |
id: check-rc | |
if: github.event_name != 'pull_request' && !startsWith(github.base_ref, 'release/') | |
env: | |
VERSION: ${{ steps.studio-chart-info.outputs.name }}-${{ steps.studio-chart-info.outputs.version }} | |
run: | | |
if [[ $VERSION == *-rc* ]]; then | |
echo "The Helm chart version is a release candidate." | |
echo "rc=true" >> $GITHUB_OUTPUT | |
else | |
echo "The Helm chart version is not a release candidate. Please add `-rc*` after the version in Chart.yaml." | |
echo "rc=false" >> $GITHUB_OUTPUT | |
fi | |
register-helm-chart: | |
name: Register Rasa Studio chart | |
needs: [check-chart-versions] | |
if: needs.check-chart-versions.outputs.release-candidate == 'true' | |
uses: ./.github/workflows/register-private-helm-chart.yml | |
with: | |
github-repo: ${{ github.repository }} | |
github-ref: ${{ github.ref }} | |
chart-path: charts/studio | |
gcp-project-id: rasa-releases | |
gcp-identity-provider: projects/611793044667/locations/global/workloadIdentityPools/github-actions-pool/providers/oidc-provider | |
gcp-service-account: [email protected] | |
gar-location: europe-west3 | |
gar-repository: helm-charts | |
promote-replicated-release: | |
name: Promote Replicated release | |
needs: [register-helm-chart, check-chart-versions] | |
if: needs.check-chart-versions.outputs.release-candidate == 'true' | |
uses: ./.github/workflows/promote-replicated-release.yml | |
with: | |
replicated-channel: studio-release-candidate | |
replicated-version: ${{ needs.check-chart-versions.outputs.studio-version }} | |
studio-version: ${{ needs.check-chart-versions.outputs.studio-version }} | |
kafka-version: 31.1.0 | |
postgres-version: 16.3.0 #15.5.29 | |
secrets: inherit |