Skip to content

Commit

Permalink
chore(ci): change release vars (#578)
Browse files Browse the repository at this point in the history
  • Loading branch information
josecorella authored Mar 9, 2022
1 parent 65bc24d commit de99b56
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
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 "no-reply@noemail.local"
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

0 comments on commit de99b56

Please sign in to comment.