main: push: # 上传 dotnet-build-docker 相关镜像到 CNB 制品库 - services: - docker stages: - name: docker login script: docker login -u ${CNB_TOKEN_USER_NAME} -p "${CNB_TOKEN}" ${CNB_DOCKER_REGISTRY} - name: docker build script: docker build -t ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}/dotnetapp:latest . - name: docker push script: docker push ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}/dotnetapp:latest # 上传 samples中 dotnetapp 应用示例 - docker: build: Dockerfile stages: - name: dotnet restore script: dotnet restore - name: dotnet build script: dotnet build - name: release 上传附件 image: devopschina/dotnet-build/dotnetapp:latest settings: attachments: - dotnetapp