From 5262194e2e1158f5887183ec86f90e6b280a2f73 Mon Sep 17 00:00:00 2001 From: Kirill Andrusyak Date: Mon, 19 Dec 2022 22:05:07 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..a61a7a7 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,17 @@ +stages: + - build + - deploy + +build-job: + stage: build + script: + - docker info + - docker build -t andrusyakka/calendar-front . + +deploy-job: + stage: deploy + only: + - master + script: + - echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USER" --password-stdin + - docker push andrusyakka/calendar-front