-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (58 loc) · 1.71 KB
/
deploy_classification.yml
File metadata and controls
64 lines (58 loc) · 1.71 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
55
56
57
58
59
60
61
62
63
name: Deploy Classification
on:
push:
branches: [ main, production ]
paths:
- 'content/classification/**'
pull_request:
branches: [ main, production ]
repository_dispatch:
types: [staging-complete, production-complete]
# Allows the workflow run manually from the Actions tab
workflow_dispatch:
inputs:
environment:
description: 'Target environment'
required: true
default: 'qa'
type: choice
options:
- qa
- prod
deploy_scope:
description: 'What to deploy'
required: true
default: 'index_pages_only'
type: choice
options:
- pages_and_sitemap
- index_pages_only
deployment_target:
description: 'Deployment target'
required: true
default: 's3'
type: choice
options:
- s3
- ceph
jobs:
deploy_s3:
if: github.event_name == 'workflow_dispatch' && inputs.deployment_target == 's3' || github.event_name != 'workflow_dispatch'
uses: ./.github/workflows/deploy_product_s3.yml
with:
product_family: "classification"
default_deploy_scope: "index_pages_only"
upload_images: false
environment: ${{ inputs.environment }}
deploy_scope: ${{ inputs.deploy_scope }}
secrets: inherit
deploy_ceph:
if: github.event_name == 'workflow_dispatch' && inputs.deployment_target == 'ceph'
uses: ./.github/workflows/deploy_product_ceph.yml
with:
product_family: "classification"
default_deploy_scope: "index_pages_only"
upload_images: false
environment: ${{ inputs.environment }}
deploy_scope: ${{ inputs.deploy_scope }}
secrets: inherit