Skip to content

Commit

Permalink
Use a specific buildkite/github-release image
Browse files Browse the repository at this point in the history
  • Loading branch information
lox committed May 31, 2019
1 parent 8d98fc6 commit 2cf0f54
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .buildkite/steps/release-github.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"

0 comments on commit 2cf0f54

Please sign in to comment.