From 8d9417225c3aadc36596b9306850414b33beccbb Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Wed, 26 Jan 2022 10:38:37 +0000 Subject: [PATCH] ci [ci-skip] --- .gitlab-ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..8d7c6d1 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,12 @@ +build: + stage: deploy + only: + - main + services: + - docker:dind + before_script: + - echo "$CI_REGISTRY_PASSWORD" | docker login $CI_REGISTRY --username $CI_REGISTRY_USER --password-stdin + script: + - docker build --no-cache -t "$CI_REGISTRY_IMAGE:latest" . -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" + - docker push "$CI_REGISTRY_IMAGE:latest" + - docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"