diff --git a/.github/workflows/deploy-env.yaml b/.github/workflows/deploy-env.yaml new file mode 100644 index 00000000000..c0b57661ee3 --- /dev/null +++ b/.github/workflows/deploy-env.yaml @@ -0,0 +1,34 @@ +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 + + - name: 🚀 Deploy + run: | + echo ${{ secrets.ENVRC }} > .envrc + source .envrc + nix run .#cardano-services.ops-preview-1@us-east-1.status + nix run .#cardano-services.ops-preview-1@us-east-1.plan