Skip to content

Commit

Permalink
Update dev image version in CCD on main merge (#112)
Browse files Browse the repository at this point in the history
* Update dev image version in CCD on main merge

Related to https://linear.app/prefect/issue/PLA-343/automatically-update-prefect-operator-helm-chart-versions-in-ccd-to

* Quote GITHUB_ENV

Co-authored-by: Jamie Zieziula <[email protected]>

---------

Co-authored-by: Jamie Zieziula <[email protected]>
  • Loading branch information
mitchnielsen and jamiezieziula authored Oct 9, 2024
1 parent 0691a63 commit 21ddfea
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/images-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,30 @@ jobs:
image: prefect-operator-dev
# this is required so that the workflow can read secrets rom the environment
secrets: inherit

update_image_version_downstream:
name: Update dev/stg image versions in `cloud2-cluster-deployment`
needs: build_and_push_image_for_main
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Get image version
run: |
short_sha="$(git rev-parse --short=7 HEAD)"
echo "SHORT_SHA=$short_sha" >> $GITHUB_ENV
- name: Run workflow
run: |
gh workflow run update-prefect-operator-versions.yaml \
--repo prefecthq/cloud2-cluster-deployment \
--ref main \
-f image_version=$SHORT_SHA \
-f mode=main-merge
env:
GH_TOKEN: ${{ secrets.CLOUD2_CLUSTER_DEPLOYMENT_ACTIONS_RW }}

0 comments on commit 21ddfea

Please sign in to comment.