mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +00:00
ci: add image building
This commit is contained in:
22
.gitlab-ci.yml
Normal file
22
.gitlab-ci.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
image: docker:stable
|
||||||
|
|
||||||
|
stages:
|
||||||
|
- image
|
||||||
|
|
||||||
|
docker image:
|
||||||
|
stage: image
|
||||||
|
only:
|
||||||
|
variables:
|
||||||
|
- $BUILD_IMAGE == "true"
|
||||||
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
|
services:
|
||||||
|
- docker:dind
|
||||||
|
script:
|
||||||
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com
|
||||||
|
- docker build -t registry.gitlab.com/openstapps/app-release-template .
|
||||||
|
- docker push registry.gitlab.com/openstapps/app-release-template
|
||||||
|
only:
|
||||||
|
- main
|
||||||
|
tags:
|
||||||
|
- docker
|
||||||
Reference in New Issue
Block a user