snowflake/.forgejo/workflows/deployment/deploy-systems.yml
notohh cdfbf13fcd
Some checks failed
flake check / check (push) Has been cancelled
deploy systems / deploy (push) Failing after 9m36s
fmt check / check (push) Successful in 42s
try this
2023-10-21 02:41:33 -04:00

25 lines
748 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: |
bash
cd .ssh
nix run github:serokell/deploy-rs -- --ssh-opts="-i forgejo -o StrictHostKeyChecking=no UserKnownHostsFile=/dev/null" --skip-checks --targets .#sakura