Skip to content

Commit de99b56

Browse files
authored
chore(ci): change release vars (#578)
1 parent 65bc24d commit de99b56

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

codebuild/release/release-prod.yml

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
version: 0.2
55

66
env:
7+
variables:
8+
BRANCH: "master"
79
secrets-manager:
810
GPG_KEY: Maven-GPG-Keys-Credentials:Keyname
911
GPG_PASS: Maven-GPG-Keys-Credentials:Passphrase
@@ -16,6 +18,7 @@ phases:
1618
java: corretto11
1719
pre_build:
1820
commands:
21+
- git checkout $BRANCH
1922
- export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
2023
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
2124
- tar -xvf ~/mvn_gpg.tgz -C ~

codebuild/release/upload_artifacts.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ phases:
1414
pre_build:
1515
commands:
1616
# get new project version
17+
- git checkout $BRANCH
1718
- export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
1819
- git config --global user.name "aws-crypto-tools-ci-bot"
1920
- git config --global user.email "[email protected]"
@@ -24,7 +25,6 @@ phases:
2425
- echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null
2526
- apt update
2627
- apt install gh
27-
- git checkout $BRANCH
2828
build:
2929
commands:
3030
- gh version

codebuild/release/validate-prod.yml

+6
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,18 @@
33

44
version: 0.2
55

6+
env:
7+
variables:
8+
BRANCH: "master"
9+
610
phases:
711
install:
812
runtime-versions:
913
java: $JAVA_ENV_VERSION
1014
pre_build:
1115
commands:
16+
- git checkout $BRANCH
17+
- export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
1218
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
1319
- cd busy-engineers-document-bucket/exercises/java/encryption-context-complete
1420
build:

0 commit comments

Comments
 (0)