Skip to content

Commit

Permalink
Update prefect-operator version in CCD (#110)
Browse files Browse the repository at this point in the history
Updates the prefect-operator image and chart versions in CCD on
releases.

Depends on PrefectHQ/platform#7603

Related to https://linear.app/prefect/issue/PLA-343/automatically-update-prefect-operator-helm-chart-versions-in-ccd-to
  • Loading branch information
mitchnielsen authored Oct 9, 2024
1 parent b2c9345 commit 1f0b552
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
# GitHub considers creating releases and uploading assets as writing contents.
contents: write
runs-on: ubuntu-latest
outputs:
releaseVersion: ${{ steps.output_versions.outputs.releaseVersion }}
operatorVersion: ${{ steps.output_versions.outputs.operatorVersion }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand All @@ -35,6 +38,12 @@ jobs:
git ls-remote --tags --refs --sort="v:refname" \
origin 'v[0-9].[0-9].[0-9]' | tail -n1 | sed 's/.*\///' | sed 's/v//')" >> $GITHUB_ENV
- name: Output versions as GitHub Outputs
id: output_versions
run: |
echo "releaseVersion=$RELEASE_VERSION" >> $GITHUB_OUTPUT
echo "operatorVersion=$OPERATOR_VERSION" >> $GITHUB_OUTPUT
- name: Configure Git
run: |
git config user.name "${GITHUB_ACTOR}"
Expand Down Expand Up @@ -101,3 +110,19 @@ jobs:
[v$IMAGE_VERSION](https://github.com/PrefectHQ/prefect-operator/releases/tag/v$IMAGE_VERSION)"
env:
GH_TOKEN: ${{ github.token }}

update_helm_chart_version_downstream:
name: Update Helm Chart version & image version in `cloud2-cluster-deployment`
needs: release
runs-on: ubuntu-latest
steps:
- name: Run workflow
run: |
gh workflow run update-prefect-operator-versions.yaml \
--repo prefecthq/cloud2-cluster-deployment \
--ref main \
-f image_version=${{ needs.release.outputs.operatorVersion }} \
-f chart_version=${{ needs.release.outputs.releaseVersion }} \
-f mode=release
env:
GH_TOKEN: ${{ secrets.CLOUD2_CLUSTER_DEPLOYMENT_ACTIONS_RW }}

0 comments on commit 1f0b552

Please sign in to comment.