snowflake/.forgejo/workflows/deployment/deploy-systems.yml
notohh b4ffe56ccf
Some checks failed
deploy systems / deploy (push) Failing after 9m35s
flake check / check (push) Has been cancelled
fmt check / check (push) Has been cancelled
deploy: add known_hosts
2023-10-21 01:46:18 -04:00

25 lines
752 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
echo "$SSH_KNOWN_HOSTS" > known_hosts
shell: bash
env:
SSH_KEY: ${{secrets.SSH_DEPLOY_KEY}}
SSH_KNOWN_HOSTS: ${{secrets.SSH_KNOWN_HOSTS}}
- name: deploy
run: |
cd .ssh
nix run github:serokell/deploy-rs -- --ssh-opts="-i forgejo" --skip-checks --targets .#sakura