Update .gitlab-ci.yml file
This commit is contained in:
17
.gitlab-ci.yml
Normal file
17
.gitlab-ci.yml
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user