Skip to content

Commit 5be7e89

Browse files
Add prefect-azure and prefect-gcp Docker image builds to release workflow (#20995)
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: alex.s <ajstreed1@gmail.com>
1 parent fbdb7d4 commit 5be7e89

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed

.github/workflows/docker-images.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,3 +168,63 @@ jobs:
168168
prefect_version: ${{ github.ref_name }}
169169
prefect_aws_version: ${{ needs.get-prefect-aws-version.outputs.PREFECT_AWS_VERSION }}
170170
secrets: inherit
171+
172+
get-prefect-azure-version:
173+
name: Get latest prefect-azure version
174+
needs: publish-docker-images
175+
runs-on: ubuntu-latest
176+
# Only trigger on actual releases (not workflow_dispatch)
177+
if: github.event_name == 'release'
178+
outputs:
179+
PREFECT_AZURE_VERSION: ${{ steps.get_version.outputs.PREFECT_AZURE_VERSION }}
180+
steps:
181+
- name: Checkout
182+
uses: actions/checkout@v6
183+
with:
184+
fetch-depth: 0
185+
186+
- name: Get latest prefect-azure version from tags
187+
id: get_version
188+
run: |
189+
PREFECT_AZURE_VERSION=$(git tag --list 'prefect-azure-*' --sort=-version:refname | head -1 | sed 's/^prefect-azure-//')
190+
echo "PREFECT_AZURE_VERSION=$PREFECT_AZURE_VERSION" >> $GITHUB_OUTPUT
191+
192+
trigger-prefect-azure-build:
193+
name: Build prefect-azure Docker images
194+
needs: [publish-docker-images, get-prefect-azure-version]
195+
if: github.event_name == 'release' && needs.get-prefect-azure-version.outputs.PREFECT_AZURE_VERSION != ''
196+
uses: ./.github/workflows/prefect-azure-docker-images.yaml
197+
with:
198+
prefect_version: ${{ github.ref_name }}
199+
prefect_azure_version: ${{ needs.get-prefect-azure-version.outputs.PREFECT_AZURE_VERSION }}
200+
secrets: inherit
201+
202+
get-prefect-gcp-version:
203+
name: Get latest prefect-gcp version
204+
needs: publish-docker-images
205+
runs-on: ubuntu-latest
206+
# Only trigger on actual releases (not workflow_dispatch)
207+
if: github.event_name == 'release'
208+
outputs:
209+
PREFECT_GCP_VERSION: ${{ steps.get_version.outputs.PREFECT_GCP_VERSION }}
210+
steps:
211+
- name: Checkout
212+
uses: actions/checkout@v6
213+
with:
214+
fetch-depth: 0
215+
216+
- name: Get latest prefect-gcp version from tags
217+
id: get_version
218+
run: |
219+
PREFECT_GCP_VERSION=$(git tag --list 'prefect-gcp-*' --sort=-version:refname | head -1 | sed 's/^prefect-gcp-//')
220+
echo "PREFECT_GCP_VERSION=$PREFECT_GCP_VERSION" >> $GITHUB_OUTPUT
221+
222+
trigger-prefect-gcp-build:
223+
name: Build prefect-gcp Docker images
224+
needs: [publish-docker-images, get-prefect-gcp-version]
225+
if: github.event_name == 'release' && needs.get-prefect-gcp-version.outputs.PREFECT_GCP_VERSION != ''
226+
uses: ./.github/workflows/prefect-gcp-docker-images.yaml
227+
with:
228+
prefect_version: ${{ github.ref_name }}
229+
prefect_gcp_version: ${{ needs.get-prefect-gcp-version.outputs.PREFECT_GCP_VERSION }}
230+
secrets: inherit

0 commit comments

Comments
 (0)