Skip to content

Commit 90deee4

Browse files
committed
Use on-demand for the final credential step
1 parent 283b6b8 commit 90deee4

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

.buildkite/pipeline.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,5 @@ steps:
9696
branches:
9797
- master
9898
agents:
99-
queue: "deploy"
100-
plugins:
101-
- ecr#v2.0.0:
102-
login: true
103-
account-ids: "032379705303"
104-
- docker#v3.5.0:
105-
image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2020.03"
106-
propagate-environment: true
99+
queue: "on-demand"
100+
task-definition: github-publish-buildkite-elastic-stack-releaser

.buildkite/steps/github-release.sh

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ then
1212
exit 1
1313
fi
1414

15-
echo '--- Getting credentials from SSM'
16-
export GITHUB_RELEASE_ACCESS_TOKEN=$(aws ssm get-parameter --name /pipelines/elastic-ci-stack-s3-secrets-hooks/GITHUB_RELEASE_ACCESS_TOKEN --with-decryption --output text --query Parameter.Value --region us-east-1)
17-
18-
if [ -z "${GITHUB_RELEASE_ACCESS_TOKEN}" ]
19-
then
20-
echo "Error: Missing \$GITHUB_RELEASE_ACCESS_TOKEN, set AWS SSM /pipelines/elastic-ci-stack-s3-secrets-hooks/GITHUB_RELEASE_ACCESS_TOKEN in us-east-1 before invoking this step"
21-
exit 1
22-
fi
23-
2415
echo '--- Downloading releases'
2516

2617
rm -rf pkg
@@ -29,6 +20,4 @@ buildkite-agent artifact download "pkg/*"
2920

3021
echo '--- Creating GitHub Release'
3122

32-
export GITHUB_RELEASE_REPOSITORY="buildkite/elastic-ci-stack-s3-secrets-hooks"
33-
34-
github-release "${VERSION}" pkg/* --commit "$(git rev-parse HEAD)"
23+
github-release "${VERSION}" pkg/* --commit "$(git rev-parse HEAD)" --github-repository "buildkite/elastic-ci-stack-s3-secrets-hooks"

0 commit comments

Comments
 (0)