GeezerVison is showing github.com — chore(ci): change release vars (#578) · aws/aws-encryption-sdk-java@de99b56
File tree
Expand 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: codebuild/release/release-prod.yml +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
4 | 4 | version: 0.2 |
5 | 5 |
|
6 | 6 | env: |
| 7 | + variables: |
| 8 | + BRANCH: "master" |
7 | 9 | secrets-manager: |
8 | 10 | GPG_KEY: Maven-GPG-Keys-Credentials:Keyname |
9 | 11 | GPG_PASS: Maven-GPG-Keys-Credentials:Passphrase |
@@ -16,6 +18,7 @@ phases: |
16 | 18 | java: corretto11 |
17 | 19 | pre_build: |
18 | 20 | commands: |
| 21 | + - git checkout $BRANCH |
19 | 22 | - export SETTINGS_FILE=$(pwd)/codebuild/release/settings.xml |
20 | 23 | - aws secretsmanager get-secret-value --region us-west-2 --secret-id Maven-GPG-Keys --query SecretBinary --output text | base64 -d > ~/mvn_gpg.tgz |
21 | 24 | - tar -xvf ~/mvn_gpg.tgz -C ~ |
|
Collapse file
Copy file name to clipboardExpand all lines: codebuild/release/upload_artifacts.yml +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -14,6 +14,7 @@ phases: |
14 | 14 | pre_build: |
15 | 15 | commands: |
16 | 16 | # get new project version |
| 17 | + - git checkout $BRANCH |
17 | 18 | - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p') |
18 | 19 | - git config --global user.name "aws-crypto-tools-ci-bot" |
19 | 20 | |
@@ -24,7 +25,6 @@ phases: |
24 | 25 | - 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 |
25 | 26 | - apt update |
26 | 27 | - apt install gh |
27 | | - - git checkout $BRANCH |
28 | 28 | build: |
29 | 29 | commands: |
30 | 30 | - gh version |
|
Collapse file
Copy file name to clipboardExpand all lines: codebuild/release/validate-prod.yml +6Lines changed: 6 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
3 | 3 |
|
4 | 4 | version: 0.2 |
5 | 5 |
|
| 6 | +env: |
| 7 | + variables: |
| 8 | + BRANCH: "master" |
| 9 | + |
6 | 10 | phases: |
7 | 11 | install: |
8 | 12 | runtime-versions: |
9 | 13 | java: $JAVA_ENV_VERSION |
10 | 14 | pre_build: |
11 | 15 | commands: |
| 16 | + - git checkout $BRANCH |
| 17 | + - export VERSION=$(grep version pom.xml | head -n 1 | sed -n 's/[ \t]*<version>\(.*\)<\/version>/\1/p') |
12 | 18 | - git clone https://github.com/aws-samples/busy-engineers-document-bucket.git |
13 | 19 | - cd busy-engineers-document-bucket/exercises/java/encryption-context-complete |
14 | 20 | build: |
|