Compare commits

...

2 commits

Author SHA1 Message Date
6a75dfdaa6 Add deployment ssh key to all VMs
All checks were successful
CI / build (push) Successful in 1m32s
CI / deploy (docs-ops.qo.is) (push) Successful in 1m3s
CI / deploy (system-vm) (push) Successful in 1m32s
2025-04-19 18:44:43 +03:00
4f79f48b99 TMP: Deploy from deploy-vms-branch 2025-04-19 18:42:48 +03:00
2 changed files with 5 additions and 1 deletions

View file

@ -27,7 +27,7 @@ jobs:
run: nix-fast-build --no-nom --max-jobs 6 --skip-cached --attic-cache "$CACHE_REPOSITORY"
deploy:
needs: build
if: success() && github.ref == 'refs/heads/main'
if: success() && github.ref == 'refs/heads/54-deploy-vms-automatically'
runs-on: nix
env:
SSH_DEPLOY_KEY: "${{ secrets.SSH_DEPLOY_KEY }}"

View file

@ -13,6 +13,10 @@ with lib;
config = lib.mkIf cfg.enable {
users.users.root.openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBS65v7n5ozOUjYGuO/dgLC9C5MUGL5kTnQnvWAYP5B3 ci@git.qo.is"
]; # TODO: Move this key to allow CI deployment for all machines.
boot.loader.grub.enable = true;
system.autoUpgrade.allowReboot = true;