Merge branch 'pipeline_number_on_image_tag' into 'master'

Testing a pipeline that tags build with pipeline ID

See merge request ldooks/dragon-bot!9
This commit is contained in:
Luke 2022-02-01 05:40:34 +00:00
commit 0871eec1e7

View File

@ -12,7 +12,6 @@ stages:
- test
- deploy
lint_python_on_merge_request:
image: python:alpine
stage: test
@ -26,7 +25,7 @@ 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 push ldooks/dragon-bot:latest
- docker build -t ldooks/dragon-bot:$CI_PIPELINE_ID -t ldooks/dragon-bot:latest .
- docker push ldooks/dragon-bot --all-tags
only:
- master