File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 33set -euo pipefail
44
55FILENAME=" ${PWD} /artifacts/cloudflared-darwin-amd64.tgz"
6-
7- echo " $GITHUB_PRIVATE_KEY "
8-
96if ! VERSION=" $( git describe --tags --exact-match 2> /dev/null) " ; then
107 echo " Skipping public release for an untagged commit."
118 echo " ##teamcity[buildStatus status='SUCCESS' text='Skipped due to lack of tag']"
@@ -34,7 +31,7 @@ SHA256=$(sha256sum "$FILENAME" | cut -b1-64)
3431# set up git (note that UserKnownHostsFile is an absolute path so we can cd wherever)
3532mkdir -p tmp
3633ssh-keyscan -t rsa github.com > tmp/github.txt
37- echo " $GITHUB_PRIVATE_KEY " > tmp/private.key
34+ echo " $GITHUB_PRIVATE_KEY_B64 " | base64 --decode > tmp/private.key
3835chmod 0400 tmp/private.key
3936export GIT_SSH_COMMAND=" ssh -o UserKnownHostsFile=$PWD /tmp/github.txt -i $PWD /tmp/private.key -o IdentitiesOnly=yes"
4037
You can’t perform that action at this time.
0 commit comments