Skip to content
Snippets Groups Projects
Commit ab44d46e authored by Alex's avatar Alex
Browse files

Build docker image and store it in gitlab registry to have a full automated deployment for tests.

parent 5cf5cee7
No related branches found
No related tags found
1 merge request!1Include Wowa Training
Pipeline #5109 passed
......@@ -42,6 +42,23 @@ build:
script:
- docker build -t cylab/ctf .
build:release:
image: docker:19.03.1
stage: build
tags:
- dind
services:
- docker:19.03.1-dind
variables:
DOCKER_TLS_CERTDIR: "/certs"
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
before_script:
- docker info
script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t gitlab.cylab.be:8081/cylab/mark-web:$CI_COMMIT_REF_SLUG .
- docker tag gitlab.cylab.be:8081/cylab/mark-web:$CI_COMMIT_REF_SLUG gitlab.cylab.be:8081/cylab/mark-web:latest
- docker push gitlab.cylab.be:8081/cylab/mark-web:latest
build:tagged:
only:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment