Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions codebuild/release/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
version: 0.2

env:
variables:
BRANCH: "master"
secrets-manager:
GPG_KEY: Maven-GPG-Keys-Credentials:Keyname
GPG_PASS: Maven-GPG-Keys-Credentials:Passphrase
Expand All @@ -16,6 +18,7 @@ phases:
java: corretto11
pre_build:
commands:
- git checkout $BRANCH
- export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
- tar -xvf ~/mvn_gpg.tgz -C ~
Expand Down
2 changes: 1 addition & 1 deletion codebuild/release/upload_artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ phases:
pre_build:
commands:
# get new project version
- git checkout $BRANCH
- export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
- git config --global user.name "aws-crypto-tools-ci-bot"
- git config --global user.email "[email protected]"
Expand All @@ -24,7 +25,6 @@ phases:
- 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
- apt update
- apt install gh
- git checkout $BRANCH
build:
commands:
- gh version
Expand Down
6 changes: 6 additions & 0 deletions codebuild/release/validate-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,18 @@

version: 0.2

env:
variables:
BRANCH: "master"

phases:
install:
runtime-versions:
java: $JAVA_ENV_VERSION
pre_build:
commands:
- git checkout $BRANCH
- export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p')
- git clone https://github.com/aws-samples/busy-engineers-document-bucket.git
- cd busy-engineers-document-bucket/exercises/java/encryption-context-complete
build:
Expand Down