Skip to content
Snippets Groups Projects
Commit 02251497 authored by Virgile Gerecke's avatar Virgile Gerecke :metal:
Browse files

Initial commit

parents
Branches
No related merge requests found
stages:
- build
- release
variables:
CONTAINER_TEST_IMAGE: unistra/python3.9-ci:$CI_COMMIT_REF_NAME
CONTAINER_RELEASE_IMAGE: unistra/python3.9-ci:latest
before_script:
- echo $DOCKERHUB_PASSWD | docker login -u gafhyb --password-stdin
b:docker:
image: docker:19.03.12
stage: build
services:
- docker:19.03.12-dind
script:
- docker build --pull -t $CONTAINER_TEST_IMAGE -f Dockerfile .
- docker push $CONTAINER_TEST_IMAGE
r:docker:
stage: release
image: docker:19.03.12
services:
- docker:19.03.12-dind
script:
- docker pull $CONTAINER_TEST_IMAGE
- docker tag $CONTAINER_TEST_IMAGE $CONTAINER_RELEASE_IMAGE
- docker push $CONTAINER_RELEASE_IMAGE
only:
- master
FROM python:3.9
MAINTAINER Dnum DIP
RUN set -ex \
&& apt-key update \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y curl build-essential python3-dev gettext make \
&& echo "[global]\ntrusted-host=repodipory.u-strasbg.fr" > /etc/pip.conf \
&& pip install tox sphinx
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