gitlab-ci.yml: add deployment to nur-packages for makefu

This commit is contained in:
makefu 2018-08-16 23:51:28 +02:00
parent b15785ef55
commit d021c0b5d1
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225
1 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,17 @@
before_script:
- mkdir -p ~/.ssh
- echo "$deploy_privkey" > deploy.key
- export GIT_SSH_COMMAND="ssh -i $PWD/deploy.key"
- chmod 600 deploy.key
- ssh-keyscan -H 'github.com' >> ~/.ssh/known_hosts
nix-shell test:
script:
- env
- nix-shell --pure --command 'true' -p stdenv && echo success
- nix-shell --pure --command 'false' -p stdenv || echo success
nur-packages makefu:
script:
- git reset --hard origin/master
- git filter-branch -f --prune-empty --subdirectory-filter makefu/5pkgs HEAD
- git remote add deploy git@github.com:makefu/nur-packages.git || git remote set-url deploy git@github.com:makefu/nur-packages.git
- git push --force deploy HEAD:master