Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio-tutorials
Commits
69ad907a
Commit
69ad907a
authored
Nov 27, 2017
by
Guilhem Saurel
Browse files
images build & deploy
parent
c7cf0f07
Pipeline
#75
failed with stages
in 1 minute and 52 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
69ad907a
...
...
@@ -7,7 +7,7 @@ stages:
build
:
stage
:
build
image
:
eur0c.laas.fr:4567/stack-of-tasks/pinocchio-tutorials
image
:
eur0c.laas.fr:4567/stack-of-tasks/pinocchio-tutorials
/build
script
:
cmake . && make
artifacts
:
paths
:
...
...
@@ -16,10 +16,11 @@ build:
deploy
:
stage
:
deploy
image
:
eur0c.laas.fr:4567/stack-of-tasks/pinocchio-tutorials/deploy
before_script
:
-
mkdir -p ~/.ssh
-
eval $(ssh-agent -s)
-
ssh-add <(echo "$SSH_PRIVATE_KEY")
-
mkdir -p ~/.ssh
-
echo "$SSH_SERVER_HOSKEYS" > ~/.ssh/known_hosts
script
:
"
scp
-r
html
gitlab@iwaki.laas.fr:"
environment
:
...
...
cicd/Dockerfile
→
cicd/Dockerfile
.build
View file @
69ad907a
...
...
@@ -4,6 +4,5 @@ RUN apt-get update -qqy && apt-get install -qqy \
asciidoc \
cmake \
g++ \
openssh-client
\
source-highlight \
&& rm -rf /var/lib/apt/lists/*
cicd/Dockerfile.deploy
0 → 100644
View file @
69ad907a
FROM ubuntu:16.04
RUN apt-get update -qqy && apt-get install -qqy \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
cicd/update.sh
View file @
69ad907a
...
...
@@ -2,5 +2,11 @@
NAME
=
eur0c.laas.fr:4567/stack-of-tasks/pinocchio-tutorials
docker build
-t
$NAME
.
docker push
$NAME
for
stage
in
build deploy
do
(
docker build
-t
$NAME
/
$stage
-f
Dockerfile.
$stage
.
docker push
$NAME
/
$stage
)
&
done
wait
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment