mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-09 11:12:52 +00:00
ci: add test job for building the docker image
This commit is contained in:
committed by
Rainer Killinger
parent
b3ee587831
commit
5f969c53f6
@@ -29,6 +29,21 @@ test:
|
||||
tags:
|
||||
- docker
|
||||
|
||||
test:image-build:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||
stage: test
|
||||
dependencies:
|
||||
- build
|
||||
variables:
|
||||
DOCKER_DRIVER: overlay2
|
||||
services:
|
||||
- docker:dind
|
||||
script:
|
||||
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
|
||||
- docker build -t $CI_REGISTRY_IMAGE/$REGISTRY_BRANCH$CI_COMMIT_REF_NAME:latest .
|
||||
tags:
|
||||
- docker
|
||||
|
||||
publish:
|
||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||
stage: publish
|
||||
|
||||
Reference in New Issue
Block a user