Skip to content

Commit

Permalink
Airflow Providers Release testing - Deployment and trigger of example…
Browse files Browse the repository at this point in the history
… DAG (#2041)

This pull request extends
[PR](#2033). It updates the
deployments with the rc_release testing branch and triggers example DAGs
with the latest providers' RC version."
  • Loading branch information
vatsrahul1001 authored Sep 21, 2023
1 parent 54795d4 commit 152d281
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/ci-astro-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,25 @@ on:
required: false
type: string
default: ''

workflow_call:
inputs:
git_rev:
description: 'The git revision to deploy'
type: string
required: false
default: ''
environment_to_deploy:
description: 'astro cloud deployment to deploy to'
required: true
type: string
default: both
dags_to_trigger_after_deployment:
description: |
Comma separated list of dag_ids to trigger after deployment
(e.g. "example_mssql_transform, example_load_file")
required: false
type: string
default: ''

jobs:
deploy-to-astro-sdk-integration-tests:
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/ci-rc-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ jobs:
working_directory: "python-sdk"
secrets:
BOT_ACCESS_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}

deploy-and-trigger-example-dag:
needs: check-airflow-provider-rc-release
if: |
always() &&
needs.check-airflow-provider-rc-release.result == 'success'
uses: ./.github/workflows/ci-astro-deploy.yml
with:
environment_to_deploy: "both"
dags_to_trigger_after_deployment: "example_master_dag"
git_rev: ${{ needs.check-airflow-provider-rc-release.outputs.rc_testing_branch }}
secrets: inherit

0 comments on commit 152d281

Please sign in to comment.