2023-10-20 19:30:57 -04:00
|
|
|
name: deploy systems
|
|
|
|
|
2023-10-21 04:04:17 -04:00
|
|
|
on:
|
|
|
|
push:
|
2023-11-24 04:21:40 -05:00
|
|
|
paths:
|
|
|
|
- "**.lock"
|
2023-10-20 19:30:57 -04:00
|
|
|
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 }}
|
2024-01-18 18:19:50 -05:00
|
|
|
extra-conf: |
|
|
|
|
builders-use-substitutes = true
|
|
|
|
substituters = https://cache.flake.sh/kyasshu https://hyprland.cachix.org https://cache.nixos.org https://nix-gaming.cachix.org https://anyrun.cachix.org https://viperml.cachix.org https://nix-community.cachix.org https://cache.nixos.org/
|
|
|
|
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= kyasshu:g1heIgCgG7M4San6nRsz/omcVQ1GTc7+zKKm3L9Co7o= hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4= anyrun.cachix.org-1:pqBobmOjI7nKlsUMV25u9QHa9btJK65/C8vnO3p346s= viperml.cachix.org-1:qZhKBMTfmcLL+OG6fj/hzsMEedgKvZVFRRAhq7j8Vh8= nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
|
2023-10-21 00:58:54 -04:00
|
|
|
- name: write private key
|
|
|
|
run: |
|
|
|
|
mkdir -p .ssh && cd .ssh
|
|
|
|
echo "$SSH_KEY" > forgejo
|
2023-10-21 02:20:28 -04:00
|
|
|
chmod 400 forgejo
|
2023-10-21 00:58:54 -04:00
|
|
|
shell: bash
|
|
|
|
env:
|
2023-10-21 01:23:14 -04:00
|
|
|
SSH_KEY: ${{secrets.SSH_DEPLOY_KEY}}
|
2023-10-20 19:30:57 -04:00
|
|
|
- name: deploy
|
2023-10-21 00:04:27 -04:00
|
|
|
run: |
|
2023-10-21 01:10:11 -04:00
|
|
|
cd .ssh
|
2024-01-05 12:50:08 -05:00
|
|
|
nix run github:serokell/deploy-rs -- --ssh-opts="-i forgejo -o StrictHostKeyChecking=no" --skip-checks --targets .#arashi .#kariru .#sakura .#sora .#yuki .#haru .#kaze
|