Fix buf push CI on forks
This commit is contained in:
parent
a0e561b6b2
commit
f15968d0c4
|
|
@ -46,17 +46,16 @@ task:
|
||||||
check_script: git diff --exit-code
|
check_script: git diff --exit-code
|
||||||
|
|
||||||
task:
|
task:
|
||||||
only_if: $CIRRUS_BRANCH != ''
|
only_if: $CIRRUS_BRANCH != '' && $CIRRUS_PR == '' && $CIRRUS_REPO_OWNER == 'cirruslabs'
|
||||||
name: buf push
|
name: buf push
|
||||||
|
|
||||||
container:
|
container:
|
||||||
image: bufbuild/buf
|
image: bufbuild/buf
|
||||||
|
|
||||||
login_script: echo $BUF_TOKEN | buf registry login --username $BUF_LOGIN --token-stdin
|
login_script: echo "$BUF_TOKEN" | buf registry login --token-stdin
|
||||||
push_script: buf push --git-metadata
|
push_script: buf push --git-metadata
|
||||||
|
|
||||||
env:
|
env:
|
||||||
BUF_LOGIN: fkorotkov
|
|
||||||
BUF_TOKEN: ENCRYPTED[!8ee7eb2504cc84b08d4a7c0dacbe103640b1feaa26d06f0df010784e872d39e65a0cdea3fc7c09b065a917a77113b96b!]
|
BUF_TOKEN: ENCRYPTED[!8ee7eb2504cc84b08d4a7c0dacbe103640b1feaa26d06f0df010784e872d39e65a0cdea3fc7c09b065a917a77113b96b!]
|
||||||
|
|
||||||
task:
|
task:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue