Commit 69ad907a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

images build & deploy

parent c7cf0f07
Pipeline #75 failed with stages
in 1 minute and 52 seconds
......@@ -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:
......
......@@ -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/*
FROM ubuntu:16.04
RUN apt-get update -qqy && apt-get install -qqy \
openssh-client \
&& rm -rf /var/lib/apt/lists/*
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment