notohh
ea5da5a906
Some checks failed
flake check / check (push) Has been cancelled
deploy systems / deploy (push) Failing after 9m20s
fmt check / check (push) Successful in 40s
23 lines
653 B
YAML
23 lines
653 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
|
|
shell: bash
|
|
env:
|
|
SSH_KEY: ${{secrets.TEST_SSH_DEPLOY_KEY}}
|
|
- name: deploy
|
|
run: |
|
|
cd .ssh
|
|
nix run github:serokell/deploy-rs -- --ssh-opts="-i forgejo" --skip-checks --targets .#sakura
|