-
Notifications
You must be signed in to change notification settings - Fork 122
chore: update mainline-1.x with new release process #385
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
db23fa8
chore: add updated release to mainline
josecorella 5aa0cf1
chore: update gitignore
josecorella f9b0bf7
chore: change branch in versioning step
josecorella 189fc39
chore: changes url
josecorella 06682c8
chore: add ci and parameterize branch name
josecorella d9c56df
chore: add test conditions script
josecorella ef53ffe
chore: add correct test vector file
josecorella a341caa
chore: add format plugin to pom
josecorella 537ff33
chore: turn off static analysis
josecorella 4b7df26
chore: specifying branch name in specs
josecorella 254bf2f
chore: ci does not need to change branches
josecorella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
## SPDX-License-Identifier: Apache-2.0 | ||
{ | ||
"branches": ["master", "mainline-1.x"], | ||
"plugins": [ | ||
["@semantic-release/commit-analyzer", { | ||
"preset": "conventionalcommits", | ||
"parserOpts": { | ||
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] | ||
}, | ||
"presetConfig": { | ||
"types": [ | ||
{"type": "feat", "section": "Features"}, | ||
{"type": "fix", "section": "Fixes"}, | ||
{"type": "chore", "section": "Maintenance"}, | ||
{"type": "docs", "section": "Maintenance"}, | ||
{"type": "revert", "section": "Fixes"}, | ||
{"type": "style", "hidden": true}, | ||
{"type": "refactor", "hidden": true}, | ||
{"type": "perf", "hidden": true}, | ||
{"type": "test", "hidden": true} | ||
] | ||
}, | ||
"releaseRules": [ | ||
{"type": "docs", "release": "patch"}, | ||
{"type": "revert", "release": "patch"}, | ||
{"type": "chore", "release": "patch"} | ||
] | ||
}], | ||
["@semantic-release/release-notes-generator", { | ||
"preset": "conventionalcommits", | ||
"parserOpts": { | ||
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] | ||
}, | ||
"presetConfig": { | ||
"types": [ | ||
{"type": "feat", "section": "Features"}, | ||
{"type": "fix", "section": "Fixes"}, | ||
{"type": "chore", "section": "Maintenance"}, | ||
{"type": "docs", "section": "Maintenance"}, | ||
{"type": "revert", "section": "Fixes"}, | ||
{"type": "style", "hidden": true}, | ||
{"type": "refactor", "hidden": true}, | ||
{"type": "perf", "hidden": true}, | ||
{"type": "test", "hidden": true} | ||
] | ||
} | ||
}], | ||
["@semantic-release/changelog", { | ||
"changelogFile": "./CHANGELOG.md", | ||
"changelogTitle": "# Changelog" | ||
}], | ||
["@semantic-release/exec", { | ||
"prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version} \ | ||
-DautoVersionSubmodules=true && find README.md -type f \ | ||
-exec sed -i '' 's/<version>.*<\\/version>/<version>${nextRelease.version}<\\/version>/g' {} \\;" | ||
}], | ||
["@semantic-release/git", { | ||
"assets": ["./CHANGELOG.md", "./pom.xml", "./README.md"], | ||
"message": "AWS Encryption SDK ${nextRelease.version} Release \n\n${nextRelease.notes}" | ||
}], | ||
], | ||
"repositoryUrl": "https://github.com/aws/aws-encryption-sdk-java", | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | ||
## SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: 0.2 | ||
|
||
batch: | ||
fast-fail: true | ||
build-graph: | ||
|
||
# Release to CodeArtifact | ||
- identifier: release_staging | ||
buildspec: codebuild/release/release-staging.yml | ||
|
||
# Validate CodeArtifact with supported JDK and Corretto | ||
- identifier: validate_staging_release_openjdk8 | ||
depend-on: | ||
- release_staging | ||
buildspec: codebuild/release/validate-staging.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: openjdk8 | ||
JAVA_NUMERIC_VERSION: 8 | ||
image: aws/codebuild/standard:3.0 | ||
|
||
- identifier: validate_staging_release_openjdk11 | ||
depend-on: | ||
- release_staging | ||
buildspec: codebuild/release/validate-staging.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: openjdk11 | ||
JAVA_NUMERIC_VERSION: 11 | ||
image: aws/codebuild/standard:3.0 | ||
|
||
- identifier: validate_staging_release_corretto8 | ||
depend-on: | ||
- release_staging | ||
buildspec: codebuild/release/validate-staging.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: corretto8 | ||
JAVA_NUMERIC_VERSION: 8 | ||
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0 | ||
|
||
- identifier: validate_staging_release_corretto11 | ||
depend-on: | ||
- release_staging | ||
buildspec: codebuild/release/validate-staging.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: corretto11 | ||
JAVA_NUMERIC_VERSION: 11 | ||
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0 | ||
|
||
# Version Project | ||
- identifier: version | ||
depend-on: | ||
- release_staging | ||
- validate_staging_release_openjdk8 | ||
- validate_staging_release_openjdk11 | ||
- validate_staging_release_corretto8 | ||
- validate_staging_release_corretto11 | ||
buildspec: codebuild/release/version.yml | ||
env: | ||
image: aws/codebuild/standard:5.0 | ||
|
||
# Publish to Maven Central | ||
- identifier: publish | ||
depend-on: | ||
- version | ||
buildspec: codebuild/release/release-prod.yml | ||
|
||
# Validate Maven Central with supported JDK and Corretto | ||
- identifier: validate_prod_release_openjdk8 | ||
depend-on: | ||
- publish | ||
buildspec: codebuild/release/validate-prod.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: openjdk8 | ||
JAVA_NUMERIC_VERSION: 8 | ||
image: aws/codebuild/standard:3.0 | ||
|
||
- identifier: validate_prod_release_openjdk11 | ||
depend-on: | ||
- publish | ||
buildspec: codebuild/release/validate-prod.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: openjdk11 | ||
JAVA_NUMERIC_VERSION: 11 | ||
image: aws/codebuild/standard:3.0 | ||
|
||
- identifier: validate_prod_release_corretto8 | ||
depend-on: | ||
- publish | ||
buildspec: codebuild/release/validate-prod.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: corretto8 | ||
JAVA_NUMERIC_VERSION: 8 | ||
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0 | ||
|
||
- identifier: validate_prod_release_corretto11 | ||
depend-on: | ||
- publish | ||
buildspec: codebuild/release/validate-prod.yml | ||
env: | ||
variables: | ||
JAVA_ENV_VERSION: corretto11 | ||
JAVA_NUMERIC_VERSION: 11 | ||
image: aws/codebuild/amazonlinux2-x86_64-standard:3.0 | ||
|
||
# Upload Artifacts | ||
- identifier: upload_artifacts | ||
depend-on: | ||
- validate_prod_release_openjdk8 | ||
- validate_prod_release_openjdk11 | ||
- validate_prod_release_corretto8 | ||
- validate_prod_release_corretto11 | ||
buildspec: codebuild/release/upload_artifacts.yml | ||
env: | ||
# Changing to standard:5.0 because we are able to install gh cli on ubuntu but | ||
# not on AmazonLinux | ||
image: aws/codebuild/standard:5.0 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this (and
release-staging.yml
) also need to checkout the right branch.