Try with build and deploy as one step
This commit is contained in:
parent
bd462d19aa
commit
d7b59bce61
@ -8,7 +8,6 @@ before_script:
|
|||||||
|
|
||||||
stages:
|
stages:
|
||||||
- test
|
- test
|
||||||
- build
|
|
||||||
- deploy
|
- deploy
|
||||||
|
|
||||||
linting_python:
|
linting_python:
|
||||||
@ -20,19 +19,11 @@ linting_python:
|
|||||||
tags:
|
tags:
|
||||||
- python
|
- python
|
||||||
|
|
||||||
building_docker_container:
|
build_and_push_container:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
|
||||||
- docker build -t ldooks/dragon-bot:latest .
|
|
||||||
only:
|
|
||||||
- master
|
|
||||||
tags:
|
|
||||||
- docker
|
|
||||||
|
|
||||||
pushing_docker_container:
|
|
||||||
stage: deploy
|
|
||||||
script:
|
script:
|
||||||
- docker login -u ldooks -p $DOCKER_PASSWORD
|
- docker login -u ldooks -p $DOCKER_PASSWORD
|
||||||
|
- docker build -t ldooks/dragon-bot:latest .
|
||||||
- docker push ldooks/dragon-bot:latest
|
- docker push ldooks/dragon-bot:latest
|
||||||
only:
|
only:
|
||||||
- master
|
- master
|
||||||
|
Loading…
x
Reference in New Issue
Block a user