CI: a task to run "buf push"
This commit is contained in:
parent
fc807c0a9f
commit
4d3200ce6b
14
.cirrus.yml
14
.cirrus.yml
|
|
@ -45,6 +45,20 @@ task:
|
|||
generate_script: buf generate
|
||||
check_script: git diff --exit-code
|
||||
|
||||
task:
|
||||
only_if: $CIRRUS_BRANCH != ''
|
||||
name: buf push
|
||||
|
||||
container:
|
||||
image: bufbuild/buf
|
||||
|
||||
login_script: echo $BUF_TOKEN | buf registry login --username $BUF_LOGIN --token-stdin
|
||||
push_script: buf push --git-metadata
|
||||
|
||||
env:
|
||||
BUF_LOGIN: fkorotkov
|
||||
BUF_TOKEN: ENCRYPTED[!8ee7eb2504cc84b08d4a7c0dacbe103640b1feaa26d06f0df010784e872d39e65a0cdea3fc7c09b065a917a77113b96b!]
|
||||
|
||||
task:
|
||||
name: Release (Dry Run)
|
||||
only_if: $CIRRUS_TAG == ''
|
||||
|
|
|
|||
Loading…
Reference in New Issue