Skip to content
Snippets Groups Projects
Commit c6a4564c authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Use docker 24

parent ab4309b6
No related branches found
No related tags found
No related merge requests found
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment