update master-pipeline.yml for Gitee Go updated_at:2022-04-28 11:03:54

This commit is contained in:
shenmo 2022-04-28 11:03:54 +00:00 committed by Gitee
parent 4ca292bd34
commit bf5d0cb75f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -11,47 +11,25 @@ triggers:
prefix: prefix:
- '' - ''
stages: stages:
- name: stage-200d0b6b
displayName: docker build
strategy: naturally
trigger: auto
executor: []
steps:
- step: build@docker
name: build_docker
displayName: 镜像构建
type: cert
certificate: d3a72e50-a6b5-013a-3031-5e77c3ac149e
tag: shenmo7192/spark-store-with-uos:1.${GITEE_PIPELINE_BUILD_NUMBER}
dockerfile: ./.gitee/Dockerfile
context: ./target/build
isCache: true
- name: stage-4e566164 - name: stage-4e566164
displayName: 复制 displayName: build
strategy: naturally strategy: naturally
trigger: auto trigger: auto
executor: [] executor: []
steps: steps:
- step: shell@agent - step: execute@docker
name: execute_shell name: execute_by_docker
displayName: Shell 脚本执行 displayName: 基于镜像的脚本执行
hostGroupID: gitee-go certificate: d3a72e50-a6b5-013a-3031-5e77c3ac149e
script: |- image: https://hub.docker.com/r/shenmo7192/uos-21-dtk5.4
# 请在此输入您想执行的脚本 command:
mkdir /root/workspace/deepin-community-store/spark-store/target/deb - git clone https://gitee.com/deepin-community-store/spark-store
mv /root/workspace/deepin-community-store/spark-store/target/build/*.deb ../deb - mkdir debs
BUILD_ARTIFACT="/root/workspace/deepin-community-store/spark-store/target/deb" - cd spark-store
- name: stage-78c83955 - dpkg-buildpackage
displayName: upload - mv *.deb ../debs
strategy: naturally - cd ../debs
trigger: auto - curl -s --url "smtp://smtp.163.com" --mail-from "sparkstorefeedback@163.com" --mail-rcpt "shenmo@spark-app.store" --upload-file ./*.deb --user "sparkstorefeedback@163.com:YWYGLQNOPLWNNJJY"
executor: []
steps:
- step: publish@general_artifacts
name: publish_general_artifacts
displayName: 上传制品
dependArtifact: BUILD_ARTIFACT
artifactName: package
permissions: permissions:
- role: admin - role: admin
members: [] members: []