From c6a4564cb87556a1618435bc3062e6392b2b27fb Mon Sep 17 00:00:00 2001 From: Bryan BRANCOTTE <bryan.brancotte@pasteur.fr> Date: Tue, 17 Oct 2023 10:36:41 +0200 Subject: [PATCH] Use docker 24 --- .gitlab-ci.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a9e1e8f..0579ed0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,7 +1,4 @@ -image: docker:18 - -services: - - docker:18-dind +image: docker:24 variables: POSTGRESQL_VERSION: "14.1" @@ -20,19 +17,15 @@ build: POSTGRES_DB: "viralhostrangedb" LC_COLLATE: POSIX services: - - docker:18-dind - name: postgres:${POSTGRESQL_VERSION} alias: db-test script: - if [ $CI_COMMIT_REF_SLUG == "master" ]; then export RUN_TEST="1"; fi # - export - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY - # pull the latest build on master - - docker pull "$CI_REGISTRY_IMAGE:latest" || true - # pull the latest build on this branch - - docker pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" || true # build the image while passing commit SHA and tagging the image with it - docker build + --build-arg BUILDKIT_INLINE_CACHE=1 --build-arg CI_COMMIT_REF_SLUG --build-arg CI_COMMIT_SHA --build-arg CI_COMMIT_SHORT_SHA -- GitLab