From fb3854643bf8882f0b646ace6487b4362d94e44c Mon Sep 17 00:00:00 2001 From: Hugo <hnouts@grandlyon.com> Date: Tue, 27 Oct 2020 14:28:19 +0100 Subject: [PATCH] gitlab ci pipeline build for registry --- .gitlab-ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..c763a1d --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,11 @@ +stages: + - build + +build_master: + stage: build + only: + - master + script: + - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY + - docker build --pull -t "$CI_REGISTRY_IMAGE" . + - docker push "$CI_REGISTRY_IMAGE" \ No newline at end of file -- GitLab