notohh
84920a102b
All checks were successful
deploy systems / deploy (push) Successful in 13m29s
flake check / check (push) Successful in 3m5s
fmt check / check (push) Successful in 51s
24 lines
736 B
YAML
24 lines
736 B
YAML
name: deploy systems
|
|
|
|
on: [push]
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: install nix action
|
|
uses: https://github.com/DeterminateSystems/nix-installer-action@v5
|
|
with:
|
|
github-token: ${{ secrets.GH_TOKEN }}
|
|
- name: write private key
|
|
run: |
|
|
mkdir -p .ssh && cd .ssh
|
|
echo "$SSH_KEY" > forgejo
|
|
chmod 400 forgejo
|
|
shell: bash
|
|
env:
|
|
SSH_KEY: ${{secrets.SSH_DEPLOY_KEY}}
|
|
- name: deploy
|
|
run: |
|
|
cd .ssh
|
|
nix run github:serokell/deploy-rs -- --ssh-opts="-i forgejo -o StrictHostKeyChecking=no" --skip-checks --targets .#arashi .#kariru .#sakura .#sora .#yuki
|