Skip to content

Commit c6b4e64

Browse files
authored
chore: fix some issues with release (#156)
1 parent 86c705a commit c6b4e64

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

cfn/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ Resources:
178178
Properties:
179179
ManagedPolicyName: !Sub "CryptoTools-SecretsManager-${ProjectName}-Release"
180180
Path: "/service-role/"
181-
# TODO for prod release: Change to Maven-GPG-Keys-Release
182181
PolicyDocument: !Sub |
183182
{
184183
"Version": "2012-10-17",
@@ -188,8 +187,10 @@ Resources:
188187
"Resource": [
189188
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-CI-xjAvTM",
190189
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-CI-Credentials-eBrSNB",
191-
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Github/aws-crypto-tools-ci-bot-AGUB3U"
192-
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Sonatype-Team-Account-0tWvZm"
190+
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Github/aws-crypto-tools-ci-bot-AGUB3U",
191+
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Sonatype-Team-Account-0tWvZm",
192+
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-Release-haLIjZ",
193+
"arn:aws:secretsmanager:us-west-2:${AWS::AccountId}:secret:Maven-GPG-Keys-Release-Credentials-WgJanS"
193194
],
194195
"Action": "secretsmanager:GetSecretValue"
195196
}

look_4_version.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44
#!bin/bash
55

6+
set -x
7+
68
VERSION=$1
79
COUNTER=0
810
STATUS=1
@@ -11,7 +13,7 @@ echo "Looking for version $VERSION"
1113

1214
while [ $STATUS -ne 0 ]; do
1315
mvn org.apache.maven.plugins:maven-dependency-plugin:3.0.1:get \
14-
-Dartifact=software.amazon.encryption.s3:amazon-s3-encryption-client-java:$VERSION:jar -U
16+
-Dartifact=software.amazon.encryption.s3:amazon-s3-encryption-client-java:$VERSION -U
1517

1618
STATUS=$?
1719
if [ $STATUS -eq 0 ]; then

0 commit comments

Comments
 (0)