File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy OSS Connector Catalog to GCS
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - master
7
+ paths :
8
+ - airbyte-config/init/src/main/resources/seed
9
+
10
+ workflow_dispatch :
11
+
12
+ jobs :
13
+ deploy-catalog :
14
+ name : " Deploy Catalog"
15
+ if : github.ref == 'refs/heads/master'
16
+ runs-on : ubuntu-latest
17
+ concurrency : deploy-oss-connector-catalog
18
+ steps :
19
+ - name : Checkout Airbyte
20
+ uses : actions/checkout@v2
21
+ - name : Setup Cloud SDK
22
+ uses : google-github-actions/setup-gcloud@v0
23
+ with :
24
+ service_account_key : ${{ secrets.PROD_SPEC_CACHE_SA_KEY }}
25
+ export_default_credentials : true
26
+ - name : Generate catalog
27
+ run : SUB_BUILD=PLATFORM ./gradlew :airbyte-config:init:processResources
28
+ - name : Upload catalog to GCS
29
+ shell : bash
30
+ run : |
31
+ gcs_bucket_name="prod-airbyte-cloud-connector-metadata-service"
32
+ catalog_path="airbyte-config/init/src/main/resources/seed/oss_catalog.json"
33
+ gsutil -h "Cache-Control:public, max-age=10" cp "$catalog_path" "gs://$gcs_bucket_name/oss_catalog.json"
You can’t perform that action at this time.
0 commit comments