File tree 3 files changed +10
-1
lines changed
3 files changed +10
-1
lines changed 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 ~
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
-
git config --global user.email "[email protected] "
@@ -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
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 :
You can’t perform that action at this time.
0 commit comments