From 26758656db3d1872d292f7f78b1790918f32c149 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Wed, 5 Jun 2024 15:59:10 -0400 Subject: [PATCH] feat: docker build image in gitlab-ci --- .gitlab-ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5677a36..008d733 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,9 @@ image: python:3.12 +stages: + - test + - build + lint: stage: test before_script: @@ -22,6 +26,16 @@ unit tests: - tox -epy312 - codecov +docker build: + stage: build + image: docker + services: + - docker:dind + variables: + DOCKER_DRIVER: overlay2 + script: + - docker build -t ${CI_REGISTRY_IMAGE}:latest -f ./compose/django/Dockerfile . + include: - template: SAST.gitlab-ci.yml # - template: License-Scanning.gitlab-ci.yml