-
Notifications
You must be signed in to change notification settings - Fork 4.2k
50 lines (49 loc) · 2.11 KB
/
metadata_service_deploy_orchestrator_dagger.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Connector Ops CI - Metadata Service Deploy Orchestrator
on:
workflow_dispatch:
inputs:
deployment_target:
description: "The deployment target for the metadata orchestrator (prod or dev)"
default: "dev"
push:
branches:
- master
paths:
- "airbyte-ci/connectors/metadata_service/**"
jobs:
connector_metadata_service_deploy_orchestrator:
name: Connector metadata service deploy orchestrator
runs-on: tooling-publish-medium
steps:
- name: Checkout Airbyte
uses: actions/checkout@v2
- name: Deploy the metadata orchestrator [On merge to master]
id: metadata-orchestrator-deploy-orchestrator-pipeline-prod
if: github.event_name == 'push'
uses: ./.github/actions/run-airbyte-ci
with:
subcommand: "metadata deploy orchestrator"
context: "master"
# dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
github_token: ${{ secrets.GITHUB_TOKEN }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
env:
DAGSTER_CLOUD_METADATA_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_METADATA_API_TOKEN }}
DAGSTER_CLOUD_DEPLOYMENT: "prod"
- name: Deploy the metadata orchestrator [On workflow]
id: metadata-orchestrator-deploy-orchestrator-pipeline-branch
if: github.event_name == 'workflow_dispatch'
uses: ./.github/actions/run-airbyte-ci
with:
subcommand: "metadata deploy orchestrator"
context: "manual"
# dagger_cloud_token: ${{ secrets.DAGGER_CLOUD_TOKEN_2 }}
github_token: ${{ secrets.GITHUB_TOKEN }}
docker_hub_username: ${{ secrets.DOCKER_HUB_USERNAME }}
docker_hub_password: ${{ secrets.DOCKER_HUB_PASSWORD }}
gcp_gsm_credentials: ${{ secrets.GCP_GSM_CREDENTIALS }}
env:
DAGSTER_CLOUD_METADATA_API_TOKEN: ${{ secrets.DAGSTER_CLOUD_METADATA_API_TOKEN }}
DAGSTER_CLOUD_DEPLOYMENT: ${{ inputs.deployment_target }}