stages: - dockerize variables: VERSION: "3.7" SONARQUBE_URL: https://sonarqube.lam.fr dockerize: image: docker:stable stage: dockerize cache: {} script: - cd tasks - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker pull $CI_REGISTRY/anis/anis-next/tasks:latest || true - docker build --cache-from $CI_REGISTRY/anis/anis-next/tasks:latest -t $CI_REGISTRY/anis/anis-next/tasks:latest . - docker push $CI_REGISTRY/anis/anis-next/tasks:latest