-
Notifications
You must be signed in to change notification settings - Fork 61
63 lines (62 loc) · 1.72 KB
/
cardano-services.yaml
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
jobs:
deploy:
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🧰 Setup Nix
uses: nixbuild/nix-quick-install-action@v28
- uses: aws-actions/[email protected]
with:
aws-region: us-east-1
role-to-assume: ${{ contains(github.ref, 'release/') && 'arn:aws:iam::926093910549:role/eks-admin'
|| 'arn:aws:iam::926093910549:role/eks-devs' }}
- name: 🚀 Deploy
run: 'echo "yes" | nix run .#cardano-services.${{inputs.target}}.${{inputs.action}}
'
name: cardano-services
'on':
workflow_call:
inputs:
action:
required: true
type: string
target:
required: true
type: string
workflow_dispatch:
inputs:
action:
description: Action
options:
- apply
- destroy
- plan
required: true
type: choice
target:
description: Targets
options:
- dev-mainnet@us-east-1
- dev-preprod@us-east-1@v2
- dev-preview@us-east-1
- dev-sanchonet@us-east-1
- live-mainnet@eu-central-1@v2
- live-mainnet@us-east-2@v2
- live-preprod@eu-central-1@v2
- live-preprod@us-east-2@v2
- live-preview@eu-central-1@v2
- live-preview@us-east-2@v2
- live-sanchonet@eu-central-1
- live-sanchonet@us-east-2
- local-network@us-east-1@v1
- ops-preprod-1@us-east-1
- ops-preview-1@us-east-1
- staging-mainnet@eu-west-1@v2
- staging-preprod@us-east-1@v2
required: true
type: choice
permissions:
contents: read
id-token: write