forked from botpress/botpress
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy-integrations-staging.yml
More file actions
54 lines (49 loc) · 1.88 KB
/
deploy-integrations-staging.yml
File metadata and controls
54 lines (49 loc) · 1.88 KB
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
51
52
53
54
name: Deploy Integrations Staging
on:
push:
branches:
- master
pull_request:
paths: 'integrations/**'
workflow_dispatch:
inputs:
force:
description: 'Force re-deploying integrations'
type: boolean
required: false
default: false
permissions:
id-token: write
contents: read
jobs:
deploy-staging:
runs-on: depot-ubuntu-22.04-8
steps:
- uses: actions/checkout@v2
- name: Setup
uses: ./.github/actions/setup
- name: Deploy Interfaces
uses: ./.github/actions/deploy-interfaces
if: ${{ github.event_name != 'pull_request' }}
with:
environment: 'staging'
force: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force == 'true' }}
token_cloud_ops_account: ${{ secrets.STAGING_TOKEN_CLOUD_OPS_ACCOUNT }}
cloud_ops_workspace_id: ${{ secrets.STAGING_CLOUD_OPS_WORKSPACE_ID }}
- name: Deploy Integrations
uses: ./.github/actions/deploy-integrations
with:
environment: 'staging'
force: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force == 'true' }}
dry_run: ${{ github.event_name == 'pull_request' }}
sentry_auth_token: ${{ secrets.SENTRY_AUTH_TOKEN }}
token_cloud_ops_account: ${{ secrets.STAGING_TOKEN_CLOUD_OPS_ACCOUNT }}
cloud_ops_workspace_id: ${{ secrets.STAGING_CLOUD_OPS_WORKSPACE_ID }}
- name: Deploy Plugins
uses: ./.github/actions/deploy-plugins
if: ${{ github.event_name != 'pull_request' }}
with:
environment: 'staging'
force: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.force == 'true' }}
token_cloud_ops_account: ${{ secrets.STAGING_TOKEN_CLOUD_OPS_ACCOUNT }}
cloud_ops_workspace_id: ${{ secrets.STAGING_CLOUD_OPS_WORKSPACE_ID }}