mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 17:42:57 +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:
|
tags:
|
||||||
- docker
|
- 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:
|
publish:
|
||||||
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
image: registry.gitlab.com/openstapps/projectmanagement/builder
|
||||||
stage: publish
|
stage: publish
|
||||||
|
|||||||
Reference in New Issue
Block a user