|
1 | 1 | name: Deploy Environment
|
2 | 2 |
|
3 | 3 | on:
|
| 4 | + push: |
4 | 5 | workflow_dispatch:
|
5 | 6 | inputs:
|
6 | 7 | environment:
|
|
10 | 11 | default: 'ops-preview-1'
|
11 | 12 | options:
|
12 | 13 | options:
|
13 |
| - - ops-preview-1 |
14 |
| - region: |
15 |
| - description: 'Region containing cluster to deploy to' |
16 |
| - type: choice |
17 |
| - required: true |
18 |
| - default: 'us-east-1' |
19 |
| - options: |
20 |
| - - us-east-1 |
21 |
| - - us-east-2 |
22 |
| - - eu-central-1 |
| 14 | + - ALL |
| 15 | + - LIVE |
| 16 | + - live-sanchonet@eu-central-1@v2 |
| 17 | + - DEV |
| 18 | + - live-mainnet@eu-central-1@v2 |
| 19 | + - live-sanchonet@us-east-2@v1 |
| 20 | + - dev-mainnet@us-east-1 |
| 21 | + - live-mainnet@us-east-2@v2 |
| 22 | + - live-sanchonet@us-east-2@v2 |
| 23 | + - dev-preprod@us-east-1@v2 |
| 24 | + - live-preprod@eu-central-1@v2 |
| 25 | + - OPS |
| 26 | + - dev-preview@us-east-1 |
| 27 | + - live-preprod@us-east-2@v2 |
| 28 | + - ops-preprod-1@us-east-1 |
| 29 | + - dev-sanchonet@us-east-1@v1 |
| 30 | + - live-preview@eu-central-1@v2 |
| 31 | + - ops-preview-1@us-east-1 |
| 32 | + - dev-sanchonet@us-east-1@v2 |
| 33 | + - live-preview@us-east-2@v2 |
| 34 | + - staging-preprod@us-east-1@v2 |
23 | 35 |
|
24 | 36 | jobs:
|
25 | 37 | deploy:
|
26 |
| - environment: ${{ inputs.environment }} |
| 38 | + environment: ${{ inputs.environment || ops-preview-1 }} |
27 | 39 | runs-on: ubuntu-latest
|
28 | 40 | steps:
|
29 | 41 | - name: 📥 Checkout repository
|
30 | 42 | uses: actions/checkout@v3
|
31 | 43 |
|
32 |
| - - name: Install QEMU |
33 |
| - run: sudo apt-get install -y qemu-user-static |
34 |
| - |
35 | 44 | - name: 🧰 Setup Nix
|
36 | 45 | uses: cachix/install-nix-action@v21
|
37 |
| - with: |
38 |
| - extra_nix_config: | |
39 |
| - system = aarch64-linux |
40 | 46 |
|
41 | 47 | - name: 🚀 Deploy
|
42 | 48 | run: |
|
43 |
| - echo "${{ secrets.ENVRC }}" > .envrc |
44 |
| - source .envrc |
| 49 | + echo "${{ secrets.ENVRC }}" > .envrc.local |
45 | 50 | nix develop
|
46 |
| - nix run .#cardano-services.${{ inputs.environment }}@${{ inputs.region }}.status |
47 |
| - nix run .#cardano-services.${{ inputs.environment }}@${{ inputs.region }}.plan |
48 |
| - nix run .#cardano-services.${{ inputs.environment }}@${{ inputs.region }}.apply -y |
| 51 | + nix run .#cardano-services.${{ inputs.environment }}.status |
| 52 | + nix run .#cardano-services.${{ inputs.environment }}.plan |
| 53 | + echo "yes" | nix run .#cardano-services.${{ inputs.environment }}.apply |
0 commit comments