forked from NixOS/nix-security-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (27 loc) · 820 Bytes
/
deployments.yaml
File metadata and controls
27 lines (27 loc) · 820 Bytes
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
name: Deployments
on:
# Run the deployment only once staging has been prepared.
workflow_run:
workflows: ["Dry activations"]
branches: [main]
types:
- completed
push:
branches: main
jobs:
deploy-to-staging:
runs-on: ubuntu-latest
steps:
- name: Setup WARP to gain IPv6
uses: fscarmen/warp-on-actions@v1.1
with:
stack: dual
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v29
- uses: DeterminateSystems/magic-nix-cache-action@main
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.DEPLOY_SSH_PRIVATE_KEY }}
- name: Trust staging server public SSH host keys
run: cat ./infra/host_keys >> ~/.ssh/known_hosts
- run: nix-shell default.nix -A ci --run deploy