From 7596759f772448dc754f0d2557ed56157442f55a Mon Sep 17 00:00:00 2001 From: Rainer Killinger Date: Fri, 18 Feb 2022 14:47:39 +0100 Subject: [PATCH] ci: add image building --- .gitlab-ci.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..5a57f1f0 --- /dev/null +++ b/.gitlab-ci.yml @@ -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 \ No newline at end of file