diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c77a994..f375f89 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,7 +3,7 @@ stages: variables: DOCKER_BUILDKIT: "0" - DEFAULT_IMAGE_REPO: swr.cn-north-1.myhuaweicloud.com/sino-bridge/sinocode-analytics + DEFAULT_IMAGE_REPO: swr.cn-north-1.myhuaweicloud.com/sino/sinocode-analytics PUSH_LATEST: "true" publish_on_runner: @@ -25,7 +25,7 @@ publish_on_runner: - sh -lc "$DOCKER_LOGIN_COMMAND" - | IMAGE_REPO="${IMAGE_REPO:-$DEFAULT_IMAGE_REPO}" - IMAGE_TAG="${IMAGE_TAG:-$CI_COMMIT_SHORT_SHA}" + IMAGE_TAG="0.0.1" IMAGE_REF="$IMAGE_REPO:$IMAGE_TAG" echo "Building $IMAGE_REF" diff --git a/README.md b/README.md index 849de20..0b46447 100644 --- a/README.md +++ b/README.md @@ -58,8 +58,7 @@ Run the `publish_on_runner` manual GitLab job on the default branch and set `DOC Optional variables: -- `IMAGE_REPO`: defaults to `swr.cn-north-1.myhuaweicloud.com/sino-bridge/sinocode-analytics` -- `IMAGE_TAG`: defaults to the Git commit short SHA +- `IMAGE_REPO`: defaults to `swr.cn-north-1.myhuaweicloud.com/sino/sinocode-analytics` - `PUSH_LATEST`: defaults to `true` ## Operational Notes