From 5621839b41f9be99a692d04509ec0bfe3add47fd Mon Sep 17 00:00:00 2001 From: Sadayuki Furuhashi Date: Mon, 18 Apr 2016 16:54:44 -0700 Subject: [PATCH] fixed build.gradle: get aws keys from env var --- build.gradle | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 89bad31185..b7bc417fc4 100644 --- a/build.gradle +++ b/build.gradle @@ -203,8 +203,8 @@ uploadReleases { ivyPattern 's3://digdag-beta-release/releases/metadata/[artifact]-[revision].[ext]' //credentials = project(':digdag-cli').publishing.repositories.s3Release.getCredentials(AwsCredentials) credentials(AwsCredentials) { - accessKey project.hasProperty('digdag_beta_release_s3_access_key') ? digdag_beta_release_s3_access_key : '' - secretKey project.hasProperty('digdag_beta_release_s3_secret_key') ? digdag_beta_release_s3_secret_key : '' + accessKey "${System.env.AWS_ACCESS_KEY_ID}" + secretKey "${System.env.AWS_SECRET_ACCESS_KEY}" } } } @@ -220,8 +220,8 @@ uploadRootFiles { ivyPattern 's3://digdag-beta-release/releases/metadata/[artifact].[ext]' //credentials = project(':digdag-cli').publishing.repositories.s3Release.getCredentials(AwsCredentials) credentials(AwsCredentials) { - accessKey project.hasProperty('digdag_beta_release_s3_access_key') ? digdag_beta_release_s3_access_key : '' - secretKey project.hasProperty('digdag_beta_release_s3_secret_key') ? digdag_beta_release_s3_secret_key : '' + accessKey "${System.env.AWS_ACCESS_KEY_ID}" + secretKey "${System.env.AWS_SECRET_ACCESS_KEY}" } } }