forked from Fediversity/Fediversity
Reviewed-on: Fediversity/Fediversity#455 Co-authored-by: Kiara Grouwstra <kiara@procolix.eu> Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
24 lines
508 B
YAML
24 lines
508 B
YAML
name: deploy-infra
|
|
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
push:
|
|
branches:
|
|
# - main
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: native
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up SSH key to access age secrets
|
|
run: |
|
|
env
|
|
mkdir -p ~/.ssh
|
|
echo "${{ secrets.CD_SSH_KEY }}" > ~/.ssh/id_ed25519
|
|
chmod 600 ~/.ssh/id_ed25519
|
|
|
|
- name: Deploy
|
|
run: nix-shell --run 'nixops4 apply default'
|