From 7859c6132c1a05dc7b51d23f4870c19910ce2614 Mon Sep 17 00:00:00 2001 From: Adrien Dorsaz Date: Thu, 14 May 2020 21:55:43 +0200 Subject: [PATCH] gitlab-ci: update dockerfile and use tags to use runner with good image --- gitlab-ci/docker/jessie/Dockerfile | 13 ++++++------- gitlab-ci/docker/stretch/Dockerfile | 14 ++++++-------- gitlab-ci/gitlab-ci.yml | 6 ++++-- 3 files changed, 16 insertions(+), 17 deletions(-) diff --git a/gitlab-ci/docker/jessie/Dockerfile b/gitlab-ci/docker/jessie/Dockerfile index 2a3a4b8..fe5da85 100644 --- a/gitlab-ci/docker/jessie/Dockerfile +++ b/gitlab-ci/docker/jessie/Dockerfile @@ -1,13 +1,12 @@ FROM debian:jessie-slim -RUN apt-get update -RUN apt-get upgrade -y - # Minimal tools required by acme-dns-tiny CI -RUN apt-get install -y --no-install-recommends \ - python3-dnspython \ - python3-coverage \ - python3-pip +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + python3-dnspython \ + python3-coverage \ + python3-pip \ + && apt-get clean # Allows run python3-coverage with same command than manual install by pip RUN update-alternatives --install \ diff --git a/gitlab-ci/docker/stretch/Dockerfile b/gitlab-ci/docker/stretch/Dockerfile index 34ddbe8..04729c8 100644 --- a/gitlab-ci/docker/stretch/Dockerfile +++ b/gitlab-ci/docker/stretch/Dockerfile @@ -1,14 +1,12 @@ FROM debian:stretch-slim -RUN apt-get update -RUN apt-get upgrade -y - # Minimal tools required by acme-dns-tiny CI -RUN apt-get install -y --no-install-recommends \ - python3-dnspython \ - python3-coverage \ - python3-configargparse \ - python3-pip +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + python3-dnspython \ + python3-coverage \ + python3-configargparse \ + python3-pip # Allows run python3-coverage with same command than manual install by pip RUN update-alternatives --install \ diff --git a/gitlab-ci/gitlab-ci.yml b/gitlab-ci/gitlab-ci.yml index f26351d..482513b 100644 --- a/gitlab-ci/gitlab-ci.yml +++ b/gitlab-ci/gitlab-ci.yml @@ -1,5 +1,6 @@ jessie: - image: adt-jessie + tags: + - jessie before_script: - pip3 install --upgrade -r tests/requirements.txt script: @@ -8,7 +9,8 @@ jessie: - coverage html stretch: - image: adt-stretch + tags: + - stretch before_script: - pip3 install --upgrade -r tests/requirements.txt script: -- GitLab