diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 82b8ec8..9e8f670 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -5,9 +5,9 @@ build: stage: build script: - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY - - docker build -t $IMAGE_NAME:$CI_COMMIT_SHA . - - docker build -t $IMAGE_NAME:$CI_COMMIT_REF_NAME . - - docker build -t $IMAGE_NAME:latest . + - docker build --pull -t $IMAGE_NAME:$CI_COMMIT_SHA . + - docker build --pull -t $IMAGE_NAME:$CI_COMMIT_REF_NAME . + - docker build --pull -t $IMAGE_NAME:latest . - docker push $IMAGE_NAME:$CI_COMMIT_SHA - docker push $IMAGE_NAME:$CI_COMMIT_REF_NAME - docker push $IMAGE_NAME:latest