variables: TMP_IMAGE: $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA include: - local: .gitlab/test.yml stages: - build - test - tag - release default: image: $TMP_IMAGE build commit: image: docker:stable stage: build services: - docker:stable-dind script: - docker info - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY - docker build -t $TMP_IMAGE . - docker image inspect $TMP_IMAGE --format='{{.Size}}' - docker push $TMP_IMAGE