ci: use sino SWR namespace and fixed image tag
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user