ci: use base90 runner for Huawei publish
This commit is contained in:
@@ -1,25 +1,22 @@
|
|||||||
workflow:
|
|
||||||
rules:
|
|
||||||
- if: '$CI_PIPELINE_SOURCE == "web"'
|
|
||||||
- when: never
|
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- publish
|
- publish
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_HOST: tcp://docker:2375
|
DOCKER_BUILDKIT: "1"
|
||||||
DOCKER_TLS_CERTDIR: ""
|
|
||||||
DOCKER_DRIVER: overlay2
|
|
||||||
DEFAULT_IMAGE_REPO: swr.cn-north-1.myhuaweicloud.com/sino-bridge/sinocode-analytics
|
DEFAULT_IMAGE_REPO: swr.cn-north-1.myhuaweicloud.com/sino-bridge/sinocode-analytics
|
||||||
PUSH_LATEST: "true"
|
PUSH_LATEST: "true"
|
||||||
|
|
||||||
publish:huawei-swr:
|
publish_on_runner:
|
||||||
stage: publish
|
stage: publish
|
||||||
image: docker:28.0.4-cli
|
tags:
|
||||||
services:
|
- base90
|
||||||
- name: docker:28.0.4-dind
|
rules:
|
||||||
command: ["--tls=false"]
|
- if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
when: manual
|
||||||
|
- when: never
|
||||||
script:
|
script:
|
||||||
|
- set -eu
|
||||||
|
- docker --version
|
||||||
- |
|
- |
|
||||||
if [ -z "${DOCKER_LOGIN_COMMAND:-}" ]; then
|
if [ -z "${DOCKER_LOGIN_COMMAND:-}" ]; then
|
||||||
echo "Set DOCKER_LOGIN_COMMAND when running the pipeline."
|
echo "Set DOCKER_LOGIN_COMMAND when running the pipeline."
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ For Coolify deployments, use `docker-compose.coolify.yml`. It expects runtime en
|
|||||||
|
|
||||||
## GitLab Manual Publish
|
## GitLab Manual Publish
|
||||||
|
|
||||||
Run the GitLab pipeline manually and set `DOCKER_LOGIN_COMMAND` to the full Huawei Cloud SWR login command.
|
Run the `publish_on_runner` manual GitLab job on the default branch and set `DOCKER_LOGIN_COMMAND` to the full Huawei Cloud SWR login command. The job uses the `base90` runner.
|
||||||
|
|
||||||
Optional variables:
|
Optional variables:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user