-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (36 loc) · 1.31 KB
/
reboot.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
name: Reboot Batch
on:
workflow_dispatch:
inputs:
products:
description: JSON product array
type: string
required: true
default: '["api", "bal", "lba", "monitoring", "tdb", "vpn", "contrat", "data"]'
environments:
description: JSON environment array
type: string
required: true
default: '["production", "recette", "preview", "pentest", "preprod"]'
jobs:
setup:
strategy:
fail-fast: false
matrix:
product: ${{ fromJSON(inputs.products) }}
environment: ${{ fromJSON(inputs.environments) }}
name: Reboot ${{ matrix.product }}-${{ matrix.environment }}
uses: "./.github/workflows/_reboot.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 }}