Skip to content

Commit

Permalink
Update release script tracing (GoogleContainerTools#2798)
Browse files Browse the repository at this point in the history
  • Loading branch information
loosebazooka authored Oct 1, 2020
1 parent 093c8e3 commit 4e0e51c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion jib-gradle-plugin/scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/sh

set -o errexit
set -o xtrace

readonly PUBLISH_KEY=$(cat "${KOKORO_KEYSTORE_DIR}/72743_gradle_publish_key")
readonly PUBLISH_SECRET=$(cat "${KOKORO_KEYSTORE_DIR}/72743_gradle_publish_secret")

set -o xtrace

gcloud components install docker-credential-gcr

# docker-credential-gcr uses GOOGLE_APPLICATION_CREDENTIALS as the credentials key file
Expand All @@ -21,6 +22,11 @@ export readonly JIB_INTEGRATION_TESTING_PROJECT=jib-integration-testing

cd github/jib

echo "gradle publish"

# turn of command tracing when dealing with secrets
set +o xtrace

./gradlew :jib-gradle-plugin:publishPlugins \
-Pgradle.publish.key="${PUBLISH_KEY}" \
-Pgradle.publish.secret="${PUBLISH_SECRET}" \
Expand Down

0 comments on commit 4e0e51c

Please sign in to comment.