diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 73742fd..ac13520 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,8 +17,8 @@ tag=":$CI_COMMIT_REF_SLUG" echo "Running on branch '$CI_COMMIT_BRANCH': tag = $tag" fi - - docker build --pull --build-arg GO_CMD=${GO_CMD} -t "$CI_REGISTRY_IMAGE/${GO_CMD}/${tag}" . - - docker push "$CI_REGISTRY_IMAGE/${GO_CMD}/${tag}" + - docker build --pull --build-arg GO_CMD=${GO_CMD} -t "$CI_REGISTRY_IMAGE/${GO_CMD}${tag}" . + - docker push "$CI_REGISTRY_IMAGE/${GO_CMD}${tag}" # Run this job in a branch where a Dockerfile exists rules: - if: $CI_COMMIT_BRANCH