From 2cf0f5484027472e69cb6f2dde668f6b2cd38d92 Mon Sep 17 00:00:00 2001 From: Lachlan Donald Date: Fri, 31 May 2019 22:54:46 +1000 Subject: [PATCH] Use a specific buildkite/github-release image --- .buildkite/steps/release-github.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/steps/release-github.sh b/.buildkite/steps/release-github.sh index 57981873..8c0e2e99 100755 --- a/.buildkite/steps/release-github.sh +++ b/.buildkite/steps/release-github.sh @@ -1,6 +1,8 @@ #!/bin/bash set -e +GITHUB_RELEASE_IMAGE="buildkite/github-release@sha256:e5ae9753a8246ace67f3669baa63103429367c999bfda0a227c91a4ebf34c23f" + if [[ "$GITHUB_RELEASE_ACCESS_TOKEN" == "" ]]; then echo "Error: Missing \$GITHUB_RELEASE_ACCESS_TOKEN" exit 1 @@ -15,7 +17,7 @@ mkdir -p dist buildkite-agent artifact download handler.zip ./dist buildkite-agent artifact download "buildkite-agent-metrics-*" ./dist -docker run -v "$PWD:$PWD" -w "$PWD" -e GITHUB_RELEASE_ACCESS_TOKEN --rm "buildkite/github-release" "v${version}" dist/* \ +docker run -v "$PWD:$PWD" -w "$PWD" -e GITHUB_RELEASE_ACCESS_TOKEN --rm "${GITHUB_RELEASE_IMAGE}" "v${version}" dist/* \ --commit "${BUILDKITE_COMMIT}" \ --tag "v${version}" \ --github-repository "buildkite/buildkite-agent-metrics"