GeezerVison is showing github.com — chore: update mainline-1.x cd (#413) · aws/aws-encryption-sdk-java@dfefa62
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: .releaserc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 53 | 53 | ["@semantic-release/exec", { | 54 | 54 | "prepareCmd": "mvn versions:set -DnewVersion=${nextRelease.version} \ | 55 | 55 | -DautoVersionSubmodules=true && find README.md -type f \ | 56 | | - -exec sed -i '' 's/<version>.*<\\/version>/<version>${nextRelease.version}<\\/version>/g' {} \\;" | | 56 | + -exec sed -i 's/<version>.*<\\/version>/<version>${nextRelease.version}<\\/version>/g' {} \\;" | 57 | 57 | }], | 58 | 58 | ["@semantic-release/git", { | 59 | 59 | "assets": ["./CHANGELOG.md", "./pom.xml", "./README.md"], | 60 | | - "message": "AWS Encryption SDK ${nextRelease.version} Release \n\n${nextRelease.notes}" | | 60 | + "message": "AWS Encryption SDK ${nextRelease.version} Release -- $(date +%Y-%m-%d) \n\n${nextRelease.notes}" | 61 | 61 | }], | 62 | 62 | ], | 63 | 63 | "repositoryUrl": "https://github.com/aws/aws-encryption-sdk-java", | |
Collapse file Copy file name to clipboardExpand all lines: README.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -56,7 +56,7 @@ You can get the latest release from Maven: | 56 | 56 | <dependency> | 57 | 57 | <groupId>com.amazonaws</groupId> | 58 | 58 | <artifactId>aws-encryption-sdk-java</artifactId> | 59 | | - <version>1.9.0</version> | | 59 | + <version>1.9.1</version> | 60 | 60 | </dependency> | 61 | 61 | ``` | 62 | 62 |
| |
Collapse file Copy file name to clipboard +20Lines changed: 20 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| | 1 | +## Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. | | 2 | +## SPDX-License-Identifier: Apache-2.0 | | 3 | + | | 4 | +version: 0.2 | | 5 | + | | 6 | +env: | | 7 | + variables: | | 8 | + BRANCH: "mainline-1.x" | | 9 | + | | 10 | +phases: | | 11 | + install: | | 12 | + runtime-versions: | | 13 | + java: corretto11 | | 14 | + pre_build: | | 15 | + commands: | | 16 | + - git checkout $BRANCH | | 17 | + - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p') | | 18 | + build: | | 19 | + commands: | | 20 | + - ./look_4_version.sh $VERSION |
Collapse file Copy file name to clipboardExpand all lines: codebuild/release/release-prod.yml -1Lines changed: 0 additions & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -38,4 +38,3 @@ phases: | 38 | 38 | -Dsonatype.password="$SONA_PASSWORD" \ | 39 | 39 | --no-transfer-progress \ | 40 | 40 | -s $SETTINGS_FILE | 41 | | - - ./look_4_version.sh $VERSION |
Collapse file Copy file name to clipboardExpand all lines: codebuild/release/release.yml +12-4Lines changed: 12 additions & 4 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -70,10 +70,18 @@ batch: | 70 | 70 | - version | 71 | 71 | buildspec: codebuild/release/release-prod.yml | 72 | 72 |
| | 73 | +# Wait for artifacts to be available | | 74 | + - identifier: availability | | 75 | + depend-on: | | 76 | + - version | | 77 | + buildspec: codebuild/release/artifact-hunt.yml | | 78 | + env: | | 79 | + image: aws/codebuild/standard:5.0 | | 80 | + | 73 | 81 | # Validate Maven Central with supported JDK and Corretto | 74 | 82 | - identifier: validate_prod_release_openjdk8 | 75 | 83 | depend-on: | 76 | | - - publish | | 84 | + - availability | 77 | 85 | buildspec: codebuild/release/validate-prod.yml | 78 | 86 | env: | 79 | 87 | variables: | | 83 | 91 |
| 84 | 92 | - identifier: validate_prod_release_openjdk11 | 85 | 93 | depend-on: | 86 | | - - publish | | 94 | + - availability | 87 | 95 | buildspec: codebuild/release/validate-prod.yml | 88 | 96 | env: | 89 | 97 | variables: | @@ -93,7 +101,7 @@ batch: | 93 | 101 |
| 94 | 102 | - identifier: validate_prod_release_corretto8 | 95 | 103 | depend-on: | 96 | | - - publish | | 104 | + - availability | 97 | 105 | buildspec: codebuild/release/validate-prod.yml | 98 | 106 | env: | 99 | 107 | variables: | @@ -103,7 +111,7 @@ batch: | 103 | 111 |
| 104 | 112 | - identifier: validate_prod_release_corretto11 | 105 | 113 | depend-on: | 106 | | - - publish | | 114 | + - availability | 107 | 115 | buildspec: codebuild/release/validate-prod.yml | 108 | 116 | env: | 109 | 117 | variables: | |
Collapse file Copy file name to clipboardExpand all lines: codebuild/release/upload_artifacts.yml +10-5Lines changed: 10 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -5,26 +5,31 @@ version: 0.2 | 5 | 5 |
| 6 | 6 | env: | 7 | 7 | variables: | 8 | | - BRANCH: "mainline-1.x" | | 8 | + BRANCH: "master" | 9 | 9 | git-credential-helper: yes | 10 | 10 | secrets-manager: | 11 | | - GH_TOKEN: Github/aws-crypto-tools-ci-bot:personal\ access\ token | | 11 | + GH_TOKEN: Github/aws-crypto-tools-ci-bot:ESDK Release Token | 12 | 12 |
| 13 | 13 | phases: | 14 | 14 | pre_build: | 15 | 15 | commands: | 16 | | - - git checkout $BRANCH | 17 | 16 | # get new project version | 18 | 17 | - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p') | | 18 | + - git config --global user.name "aws-crypto-tools-ci-bot" | | 19 | + | | 20 | + - echo $GH_TOKEN > token.txt | | 21 | + - export GH_TOKEN= | 19 | 22 | # install gh cli in order to upload artifacts | 20 | 23 | - curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg | 21 | 24 | - 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 | 22 | 25 | - apt update | 23 | 26 | - apt install gh | | 27 | + - git checkout $BRANCH | 24 | 28 | build: | 25 | 29 | commands: | 26 | 30 | - gh version | 27 | | - - gh auth login --with-token < $GH_TOKEN | | 31 | + - gh auth login --with-token < token.txt | | 32 | + - gh auth status | 28 | 33 | - | | 29 | 34 | mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get \ | 30 | 35 | -DrepoUrl=https://aws.oss.sonatype.org \ | @@ -37,4 +42,4 @@ phases: | 37 | 42 | mvn org.apache.maven.plugins:maven-dependency-plugin:3.1.2:get \ | 38 | 43 | -DrepoUrl=https://aws.oss.sonatype.org \ | 39 | 44 | -Dartifact=com.amazonaws:aws-encryption-sdk-java:${VERSION}:jar:javadoc | 40 | | - - gh release upload v${VERSION} ~/.m2/repository/com/amazonaws/aws-encryption-sdk-java/${VERSION}/*.jar | | 45 | + - gh release create v${VERSION} ~/.m2/repository/com/amazonaws/aws-encryption-sdk-java/${VERSION}/*.jar -d -F CHANGELOG.md -t "AWS Encryption SDK ${VERSION} Release -- $(date +%Y-%m-%d)" |
Collapse file Copy file name to clipboardExpand all lines: codebuild/release/version.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,5 +26,5 @@ phases: | 26 | 26 | - git checkout $BRANCH | 27 | 27 | build: | 28 | 28 | commands: | 29 | | - - npx semantic-release --branches $BRANCH --no-ci | | 29 | + - npx semantic-release --branches $BRANCH --no-ci | 30 | 30 |
|
|