Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update release script #1912

Merged
merged 1 commit into from
Jan 23, 2024
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
11 changes: 3 additions & 8 deletions codebuild/ci/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ phases:
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-CI --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
- tar -xvf ~/mvn_gpg.tgz -C ~

# Build and deploy to maven local
- cd submodules/MaterialProviders
- git checkout $BRANCH
- cd TestVectorsAwsCryptographicMaterialProviders/
# This works because `node` is installed by default on GHA runners
- CORES=$(node -e 'console.log(os.cpus().length)')
- make build_java CORES=$CORES
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
# Build and deploy TestVectors to maven local
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
- make build_java && make mvn_local_deploy
- cd $CODEBUILD_SRC_DIR

build:
Expand Down
9 changes: 2 additions & 7 deletions codebuild/ci/vectors-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,8 @@ phases:
- aws sts get-caller-identity

# Build and deploy TestVectors to maven local
- cd submodules/MaterialProviders
- git checkout $BRANCH
- cd TestVectorsAwsCryptographicMaterialProviders/
# This works because `node` is installed by default on GHA runners
- CORES=$(node -e 'console.log(os.cpus().length)')
- make build_java CORES=$CORES
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
- make build_java && make mvn_local_deploy
- cd $CODEBUILD_SRC_DIR
build:
commands:
Expand Down
11 changes: 3 additions & 8 deletions codebuild/ci/vectors-generator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,9 @@ phases:
- export AWS_SESSION_TOKEN=$(echo "${TMP_ROLE}" | jq -r '.Credentials.SessionToken')
- aws sts get-caller-identity

# Build and deploy to maven local
- cd submodules/MaterialProviders
- git checkout $BRANCH
- cd TestVectorsAwsCryptographicMaterialProviders/
# This works because `node` is installed by default on GHA runners
- CORES=$(node -e 'console.log(os.cpus().length)')
- make build_java CORES=$CORES
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
# Build and deploy TestVectors to maven local
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
- make build_java && make mvn_local_deploy
- cd $CODEBUILD_SRC_DIR
build:
commands:
Expand Down
11 changes: 3 additions & 8 deletions codebuild/release/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,9 @@ phases:
- export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-Release --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
- tar -xvf ~/mvn_gpg.tgz -C ~
# Build and deploy TestVectorsAwsCryptographicMaterialProviders to maven local
- cd submodules/MaterialProviders
- git checkout $BRANCH
- cd TestVectorsAwsCryptographicMaterialProviders/
# This works because `node` is installed by default on GHA runners
- CORES=$(node -e 'console.log(os.cpus().length)')
- make build_java CORES=$CORES
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
# Build and deploy TestVectors to maven local
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
- make build_java && make mvn_local_deploy
- cd $CODEBUILD_SRC_DIR
build:
commands:
Expand Down
11 changes: 3 additions & 8 deletions codebuild/release/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,9 @@ phases:
- export CODEARTIFACT_REPO_URL=https://${DOMAIN}-${ACCOUNT}.d.codeartifact.${REGION}.amazonaws.com/maven/${REPOSITORY}
- aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys-Release --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz
- tar -xvf ~/mvn_gpg.tgz -C ~
# Build and deploy TestVectorsAwsCryptographicMaterialProviders to maven local
- cd submodules/MaterialProviders
- git checkout $BRANCH
- cd TestVectorsAwsCryptographicMaterialProviders/
# This works because `node` is installed by default on GHA runners
- CORES=$(node -e 'console.log(os.cpus().length)')
- make build_java CORES=$CORES
- ./runtimes/java/gradlew -p runtimes/java publishMavenLocalPublicationToMavenLocal
# Build and deploy TestVectors to maven local
- cd submodules/MaterialProviders/TestVectorsAwsCryptographicMaterialProviders/
- make build_java && make mvn_local_deploy
- cd $CODEBUILD_SRC_DIR
build:
commands:
Expand Down