Commit bcc80b40 by 胡园园

Update .gitlab-ci.yml

parent 728e7f77
Pipeline #46479 passed with stages
in 1 minute 53 seconds
......@@ -64,16 +64,14 @@ test_upload_bee:
dependencies:
- test_package
test_image_upload:
test_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}"
- unzip -o -q $CI_PROJECT_NAME.zip -d .
- docker build --pull -t ${IMAGE_NAME} .
- eval opera docker $OPERA_ARGS --env=test --imageName=${IMAGE_NAME} --imageTag=${IMAGE_TAG} --autoDeploy=true --clusterId=44 --ldcCode=cluster1
- eval opera truck $OPERA_ARGS --env=test --artifactPath=$CI_PROJECT_NAME.zip --artifactVersion=$ARTIFACT_VERSION
tags:
- ci-backend
only:
......
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