Skip to content

Commit b1ca1c2

Browse files
authored
add action for deploying oss connector catalog to GCS (#18633)
* add action for deploying oss connector catalog to GCS * Update deploy-oss-catalog.yml
1 parent bf43f62 commit b1ca1c2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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"

0 commit comments

Comments
 (0)