image: docker:latest services: - docker:dind stages: - build variables: IMAGE: registry.gitlab.com/$CI_PROJECT_PATH before_script: - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.com build: stage: build script: - docker build --pull -t $IMAGE:master centurion - docker push $IMAGE:master