shack/gitlab-runner: do not restart service on change

This commit is contained in:
makefu 2019-07-08 00:58:38 +02:00
parent f4ec0418f2
commit 7ca133e90b
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
2 changed files with 6 additions and 2 deletions

View File

@ -30,9 +30,12 @@ nix-shell test:
wolf deployment:
stage: deploy
script:
- GIT_SSH_COMMAND="ssh -i ~/.ssh/gitlab_deploy.key" git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
- cp ~/.ssh/gitlab_deploy.key ~/.ssh/id_rsa
- git clone git@ssh.git.shackspace.de:rz/secrets.git ~/brain
- git submodule update --init
- ssh-keyscan -H 'wolf.shack' >> ~/.ssh/known_hosts
- ssh-keyscan -H 'wolf' >> ~/.ssh/known_hosts
- ssh wolf uname -a
# TODO, hostname wolf cannot be resolved
- $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target wolf.shack -A deploy)
nur-packages makefu:

View File

@ -19,6 +19,7 @@ in
# CI_SERVER_URL=<CI server URL>
# REGISTRATION_TOKEN=<registration secret>
registrationConfigFile = <secrets/shackspace-gitlab-ci>;
gracefulTermination = true;
#gracefulTermination = true;
};
systemd.services.gitlab-runner2.restartIfChanged = false;
}