Skip to content
Snippets Groups Projects
Commit d1f090e2 authored by František Dvořák's avatar František Dvořák
Browse files

Workaround bug in the git

parent 1e60b3ff
Branches master
No related tags found
No related merge requests found
Pipeline #3709 failed
......@@ -235,7 +235,7 @@ while ! ping -c 1 -i 2 -q $ip; do sleep 5; done
ssh-keygen -R $ip
while ! $remote -o ConnectTimeout=15 -o StrictHostKeyChecking=no :; do sleep 15; done
if [ -z "$NO_DEPLOYMENT" ]; then
git archive HEAD | $remote 'rm -rf terraform; mkdir terraform; cd terraform; tar x'
tar c .gitignore *.cfg *.md *.yml *.py *.tf .git/ common/ deployments/ image/ | $remote 'rm -rf terraform; mkdir terraform; cd terraform; tar x'
scp -o PreferredAuthentications=publickey -p ${local_sensitive_file.output.filename} deployadm@$ip:~/terraform/
$remote -o ForwardAgent=yes "cd terraform; SENSITIVE=$SENSITIVE ./orchestrate.py -c ${local_sensitive_file.output.filename}"
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment