variables: SSH_LOCATION: "root@192.168.1.246" run-tests: when: manual image: alpine before_script: - apk update && apk add openssh-client - eval $(ssh-agent -s) - chmod 400 "$SSH_PRIVATE_KEY" - ssh-add "$SSH_PRIVATE_KEY" - mkdir -p ~/.ssh - chmod 700 ~/.ssh - cp "$SSH_KNOWN_HOSTS" ~/.ssh/known_hosts script: - ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra && git pull && nixos-rebuild switch --fast --flake .#default'" - ssh $SSH_LOCATION "bash -lc 'cd /opt/candelabra/src && just run-all-tests'"