ci [ci-skip]

This commit is contained in:
Struchkov Mark 2022-01-26 10:38:37 +00:00
parent 176afe1737
commit 8d9417225c

12
.gitlab-ci.yml Normal file
View File

@ -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"