-
Notifications
You must be signed in to change notification settings - Fork 58
40 lines (34 loc) · 1.05 KB
/
deploy-env.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
name: Deploy Environment
on:
push:
workflow_dispatch:
inputs:
environment:
description: 'Environment to deploy to'
type: choice
required: true
default: 'ops-preview-1'
options:
- ops-preview-1
jobs:
deploy:
environment: ${{ inputs.environment }}
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: Install QEMU
run: sudo apt-get install -y qemu-user-static
- name: 🧰 Setup Nix
uses: cachix/install-nix-action@v21
with:
extra_nix_config: |
system = aarch64-linux
- name: 🚀 Deploy
run: |
echo "${{ secrets.ENVRC }}" > .envrc
source .envrc
nix develop
nix run .#cardano-services.${{ inputs.environment }}@${{ inputs.region }}.status
nix run .#cardano-services.${{ inputs.environment }}@${{ inputs.region }}.plan
nix run .#cardano-services.${{ inputs.environment }}@${{ inputs.region }}.apply -y