-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (55 loc) · 1.82 KB
/
batch_setup.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
51
52
53
54
55
56
name: Setup Batch
on:
workflow_dispatch:
inputs:
products:
description: JSON product array
type: string
required: true
default: '["api", "bal", "lba", "monitoring", "tdb", "vpn"]'
environments:
description: JSON environment array
type: string
required: true
default: '["production", "recette", "preview", "pentest"]'
jobs:
setup:
strategy:
fail-fast: false
matrix:
product: ${{ fromJSON(inputs.products) }}
environment: ${{ fromJSON(inputs.environments) }}
exclude:
- product: api
environment: pentest
- product: bal
environment: pentest
- product: tdb
environment: pentest
- product: monitoring
environment: pentest
- product: vpn
environment: pentest
- product: monitoring
environment: recette
- product: vpn
environment: recette
- product: monitoring
environment: preview
- product: vpn
environment: preview
name: Setup ${{ matrix.product }} on ${{ matrix.environment }}
uses: "./.github/workflows/_setup.yml"
with:
product: ${{ matrix.product}}
environment: ${{ matrix.environment}}
SSH_KNOWN_HOSTS: ${{ vars[format('{0}_SSH_KNOWN_HOSTS', matrix.product)] }}
secrets:
DEPLOY_SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
DEPLOY_PASS: ${{ secrets.DEPLOY_PASS }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
VAULT_PWD: ${{ secrets.VAULT_PWD }}
HABILITATIONS: ${{ secrets[format('{0}_HABILITATIONS', matrix.product)] }}
OVH_APP_TOKEN: ${{ secrets.OVH_APP_TOKEN }}
OVH_APP_KEY: ${{ secrets.OVH_APP_KEY }}
OVH_APP_SECRET: ${{ secrets.OVH_APP_SECRET }}