8000 Composer cloud build (#4607) · larkee/python-docs-samples@36c7b80 · GitHub
[go: up one dir, main page]

Skip to content

Commit 36c7b80

Browse files
Composer cloud build (GoogleCloudPlatform#4607)
* add cloud build and requirements file * pin requirements * Update composer/workflows/requirements-composer.txt Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
1 parent 68f137c commit 36c7b80

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

composer/workflows/cloud-build.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Job for keeping the test Python packages in the Test Cloud Composer Environment up to date
2+
steps:
3+
- name: 'gcr.io/cloud-builders/gcloud'
4+
args: ['composer', 'environments', 'update', 'composer-test', '--update-pypi-packages-from-file', 'requirements-composer.txt', '--location', 'us-central1']
5+
timeout: 3600s #set timeout to 1h. It's unusual for installing Python packages in a composer environment to take 1h to update.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# requirements file for python packages installed in the composer environment, for more info, see https://cloud.google.com/composer/docs/how-to/using/installing-python-dependencies
2+
apache-airflow-backport-providers-google==2020.6.24

renovate.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"rebaseWhen": "never",
77
"masterIssue": true,
88
"pip_requirements": {
9-
"fileMatch": ["requirements-test.txt"]
9+
"fileMatch": ["requirements-test.txt", "requirements-composer.txt"]
1010
},
1111
"packageRules": [
1212
{

0 commit comments

Comments
 (0)
0