Testing a pipeline that tags build with pipeline ID
This commit is contained in:
parent
62d3e0703c
commit
a936925d97
@ -12,7 +12,6 @@ stages:
|
||||
- test
|
||||
- deploy
|
||||
|
||||
|
||||
lint_python_on_merge_request:
|
||||
image: python:alpine
|
||||
stage: test
|
||||
@ -26,7 +25,8 @@ build_and_push_container:
|
||||
- echo "Wait for Docker daemon at tcp://localhost:2375"
|
||||
- while ! nc -z localhost 2375; do sleep 0.1; done # Wait until docker socket is available
|
||||
- docker login -u ldooks -p $DOCKER_ACCESS_TOKEN
|
||||
- docker build -t ldooks/dragon-bot:latest .
|
||||
- docker build -t ldooks/dragon-bot:$CI_JOB_ID .
|
||||
- docker push ldooks/dragon-bot:$CI_JOB_ID
|
||||
- docker push ldooks/dragon-bot:latest
|
||||
only:
|
||||
- master
|
||||
|
Loading…
x
Reference in New Issue
Block a user