Commit c47f8d1a by 胡园园

Update .gitlab-ci.yml

parent 2152eead
Pipeline #46793 passed with stages
in 2 minutes 14 seconds
...@@ -134,6 +134,22 @@ online_image_upload: ...@@ -134,6 +134,22 @@ online_image_upload:
dependencies: dependencies:
- online_package - online_package
online_artifact_upload:
stage: upload
script:
- version_tools time && CURRENT_TIMESTAMP=$(version_tools result)
- version_tools version && PROJECT_VERSION=$(version_tools result)
- IMAGE_TAG="${PROJECT_VERSION}-${CI_COMMIT_REF_NAME##*/}-${CURRENT_TIMESTAMP}-${CI_PIPELINE_ID}"
- IMAGE_NAME="${HARBOR_URL}/${HARBOR_APP_DIRECTOR}/${SERVICE_CODE}:${IMAGE_TAG}"
- eval opera truck $OPERA_ARGS --env=online --artifactPath=$CI_PROJECT_NAME.zip --artifactVersion=$ARTIFACT_VERSION
tags:
- ci-backend
only:
- /^release.*$/
- /^hotfix.*$/
dependencies:
- online_package
################ ################
# Regression # Regression
################ ################
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment