Skip to content
Snippets Groups Projects
Commit 0ce899fd authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

Testing push from CI

parent 7c1de2ba
No related branches found
No related tags found
1 merge request!427Resolve "Wolf license"
Pipeline #7284 failed
This commit is part of merge request !427. Comments created here will be created in the context of that merge request.
...@@ -10,10 +10,31 @@ ...@@ -10,10 +10,31 @@
- make install - make install
stages: stages:
- license
- build_and_test - build_and_test
- deploy - deploy
- final - final
license_header:
stage: license
image: labrobotica/wolf_deps:16.04
before_script:
- 'which ssh-agent || ( apt-get update -qy && apt-get install openssh-client -qqy )'
- eval `ssh-agent -s`
- echo "${SSH_PRIVATE_KEY}" | tr -d '\r' | ssh-add - > /dev/null # add ssh ke
- mkdir -p ~/.ssh
- chmod 700 ~/.ssh
- echo "$SSH_PUBLIC_KEY" >> ~/.ssh/id_rsa.pub
- '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config'
script:
- git config --global user.email "${CI_EMAIL}"
- git config --global user.name "${CI_USERNAME}"
- touch prova.txt
- git add -f prova.txt
- git commit -m "added prova.txt" || echo "No changes, nothing to commit!"
- git remote rm origin && git remote add origin git@gitlab.com:$CI_PROJECT_PATH.git
- git push origin HEAD:$CI_COMMIT_REF_NAME # Pushes to the same branch as the trigger
build_and_test:xenial: build_and_test:xenial:
stage: build_and_test stage: build_and_test
image: labrobotica/wolf_deps:16.04 image: labrobotica/wolf_deps:16.04
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment