gitlab-ci: only run deploy on changes in krebs
This commit is contained in:
parent
e5d7d6eee2
commit
1c3286eca3
@ -36,6 +36,12 @@ wolf deployment:
|
|||||||
- ssh-keyscan -H 'wolf.shack' >> ~/.ssh/known_hosts
|
- ssh-keyscan -H 'wolf.shack' >> ~/.ssh/known_hosts
|
||||||
# TODO, hostname wolf cannot be resolved
|
# TODO, hostname wolf cannot be resolved
|
||||||
- $(nix-build krebs/krops.nix --no-out-link --argstr name wolf --argstr target wolf.shack -A deploy)
|
- $(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:
|
nur-packages makefu:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
script:
|
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 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
|
- 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
|
- curl -XPOST http://nur-update.herokuapp.com/update?repo=makefu
|
||||||
|
only:
|
||||||
|
changes:
|
||||||
|
- makefu/**/*
|
||||||
after_script:
|
after_script:
|
||||||
- rm -rf .ssh/
|
- rm -rf .ssh/
|
||||||
|
Loading…
Reference in New Issue
Block a user