chore: Set Nix system as aarch64-darwin #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deployed Environments - SDK E2E Tests | |
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 || 'ops-preview-1' }} | |
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 | |
export PRJ_ROOT=$(pwd) | |
mkdir .kube && touch .kube/us-east-1 | |
echo "${{ secrets.KUBECONFIG }}" > .kube/us-east-1 | |
# export KUBECONFIG=.kubeconfig | |
nix develop | |
nix run .#[email protected] | |
nix run .#[email protected] |