Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
wolf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mobile_robotics
wolf_projects
wolf_lib
wolf
Commits
0ce899fd
Commit
0ce899fd
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
Testing push from CI
parent
7c1de2ba
No related branches found
No related tags found
1 merge request
!427
Resolve "Wolf license"
Pipeline
#7284
failed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+21
-0
21 additions, 0 deletions
.gitlab-ci.yml
with
21 additions
and
0 deletions
.gitlab-ci.yml
+
21
−
0
View file @
0ce899fd
...
...
@@ -10,10 +10,31 @@
-
make install
stages
:
-
license
-
build_and_test
-
deploy
-
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
:
stage
:
build_and_test
image
:
labrobotica/wolf_deps:16.04
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment