Skip to content

Commit

Permalink
feat: docker build image in gitlab-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
infinitewarp committed Jun 6, 2024
1 parent 9ce4f89 commit 2675865
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
image: python:3.12

stages:
- test
- build

lint:
stage: test
before_script:
Expand All @@ -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

0 comments on commit 2675865

Please sign in to comment.