Testing a pipeline that tags build with pipeline ID

This commit is contained in:
Luke Robles 2022-01-31 21:34:41 -08:00
parent 6e37b76c26
commit b3fc7f65f2

View File

@ -12,7 +12,6 @@ stages:
- test - test
- deploy - deploy
lint_python_on_merge_request: lint_python_on_merge_request:
image: python:alpine image: python:alpine
stage: test stage: test
@ -26,7 +25,8 @@ build_and_push_container:
- echo "Wait for Docker daemon at tcp://localhost:2375" - 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 - 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 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 - docker push ldooks/dragon-bot:latest
only: only:
- master - master