main: push: - 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}:latest . - name: docker push script: docker push ${CNB_DOCKER_REGISTRY}/${CNB_REPO_SLUG_LOWERCASE}:latest $: tag_push: - docker: build: .ide/Dockerfile stages: - name: changelog image: cnbcool/changelog exports: latestChangeLog: LATEST_CHANGE_LOG - name: create release type: git:release options: title: release description: ${LATEST_CHANGE_LOG} - name: go mod script: go mod vendor - name: go build script: go build -o helloworld-${CNB_BRANCH} - name: release 上传附件 image: cnbcool/attachments:latest settings: attachments: - helloworld-${CNB_BRANCH}