aboutsummaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAria Shrimpton <me@aria.rip>2024-01-29 23:10:11 +0000
committerAria Shrimpton <me@aria.rip>2024-01-29 23:10:11 +0000
commitd976cddbea716de16e8b949415aa75922662a882 (patch)
treeb6b2916a35dd14854638de2f5ec038136eff1c51 /.gitlab-ci.yml
parent4ed1a7f603d8815137a9cb8eeb2284bcf6f6075d (diff)
update ci
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml17
1 files changed, 15 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c1db01e..9971c38 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,17 @@
+variables:
+ SSH_LOCATION: "root@192.168.1.246"
+
run-tests:
when: manual
- trigger:
- include: .experiments.gitlab-ci.yml
+ 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 'cd /opt/candelabra && git pull && nixos-rebuild switch --flake .#default'
+ - ssh $SSH_LOCATION 'cd /opt/candelabra && just run-all-tests'