diff options
author | makefu <github@syntax-fehler.de> | 2019-07-08 11:53:46 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2019-07-08 11:53:46 +0200 |
commit | 1c3286eca34c67d5411bcedb666cb2aa62c9ae9e (patch) | |
tree | 718970c44986e8550631d992f7fbb09ecd61d77f | |
parent | e5d7d6eee253ab9a33a72ea0452f3b92083e759f (diff) |
gitlab-ci: only run deploy on changes in krebs
-rw-r--r-- | .gitlab-ci.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd0b32edc..fb273c932 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -36,6 +36,12 @@ wolf deployment: - ssh-keyscan -H 'wolf.shack' >> ~/.ssh/known_hosts # TODO, hostname wolf cannot be resolved - $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target wolf.shack -A deploy) + only: + changes: + - .gitlab-ci.yml + - krebs/**/* + - lib/**/* + - .gitmodules nur-packages makefu: stage: deploy script: @@ -44,5 +50,8 @@ nur-packages makefu: - git remote add deploy git@github.com:makefu/nur-packages.git || git remote set-url deploy git@github.com:makefu/nur-packages.git - GIT_SSH_COMMAND="ssh -i ~/.ssh/github_deploy.key" git push --force deploy HEAD:master - curl -XPOST http://nur-update.herokuapp.com/update?repo=makefu + only: + changes: + - makefu/**/* after_script: - rm -rf .ssh/ |