gitlab-ci: try to see if we can parse out the system
This commit is contained in:
parent
713c2e755b
commit
b3df707421
2 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,9 @@ nixCache:
|
|||
|
||||
.deploy:
|
||||
stage: deploy
|
||||
needs:
|
||||
- job: nixCache
|
||||
artifacts: true
|
||||
tags:
|
||||
- deployer
|
||||
|
||||
|
|
|
@ -12,6 +12,9 @@ ssh_cmd="ssh -o StrictHostKeyChecking=accept-new"
|
|||
|
||||
if [ ! -z ${2+x} ]; then ssh_cmd="$ssh_cmd $2"; fi
|
||||
|
||||
system="$(nix run nixpkgs.jq -c jq -r ".[\"${1}\"]" systems.json)"
|
||||
echo System is $system
|
||||
|
||||
echo Syncing repo content to machine "$1"
|
||||
rsync -e "$ssh_cmd" -avz --exclude='.hg/store/data/' --exclude='.hg/store/dh/' --exclude='.hg/cache/' --exclude='.hg/wcache/' ./ "deployer@$1:depot/"
|
||||
|
||||
|
|
Loading…
Reference in a new issue