Commit 8650c6dd authored by Timothée Floure's avatar Timothée Floure

Add debian-packaging image definition and build pipeline

parent 15e13304
Pipeline #1499 failed with stages
in 2 minutes and 17 seconds
variables:
DEBIAN_JEKYLL: gitlab.gnugen.ch:5005/gnugen/ci-containers/debian-jekyll
DEBIAN_PACKAGING: gitlab.gnugen.ch:5005/gnugen/ci-containers/debian-packaging
stages:
- build
......@@ -25,6 +26,22 @@ build-debian-jekyll:
paths:
- debian_jekyll_tag
build-debian-packaging:
stage: build
tags:
- docker
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab.gnugen.ch:5005
- export TAG=$(date -I)_$CI_COMMIT_SHA
script:
- docker build -t $DEBIAN_PACKAGING:$TAG debian-packaging
- docker push $DEBIAN_PACKAGING:$TAG
- echo $TAG > debian_packaging_tag
artifacts:
expire_in: 1h
paths:
- debian_packaging_tag
release-images:
stage: release
tags:
......@@ -32,7 +49,11 @@ release-images:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN gitlab.gnugen.ch:5005
- export DEBIAN_JEKYLL_TAG=$(cat debian_jekyll_tag)
- export DEBIAN_PACKAGING_TAG=$(cat debian_packaging_tag)
script:
- docker pull $DEBIAN_JEKYLL:$DEBIAN_JEKYLL_TAG
- docker tag $DEBIAN_JEKYLL:$DEBIAN_JEKYLL_TAG $DEBIAN_JEKYLL:latest
- docker push $DEBIAN_JEKYLL:latest
- docker pull $DEBIAN_PACKAGING:$DEBIAN_PACKAGING_TAG
- docker tag $DEBIAN_PACKAGING:$DEBIAN_PACKAGING_TAG $DEBIAN_PACKAGING:latest
- docker push $DEBIAN_PACKAGING:latest
FROM debian:stretch
MAINTAINER Timothée Floure <timothee.floure@epfl.ch>
# Update local package index
RUN apt-get update
# Install debian packaging tools
RUN apt-get install dpkg-dev debhelper lintian dput -y
Markdown is supported
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