diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 159d8343..8ddceff5 100755 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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