Skip to content

Commit

Permalink
fixed build.gradle: get aws keys from env var
Browse files Browse the repository at this point in the history
  • Loading branch information
frsyuki committed Apr 18, 2016
1 parent 4d5fd49 commit 5621839
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
}
}
}
Expand All @@ -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}"
}
}
}
Expand Down

0 comments on commit 5621839

Please sign in to comment.