mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-24 00:35:49 +00:00
add buildspec.yml codebuild.yml ecr.yml file
This commit is contained in:
parent
585277ef62
commit
f2a90007aa
1 changed files with 1 additions and 4 deletions
|
@ -3,14 +3,11 @@ version: 0.2
|
||||||
phases:
|
phases:
|
||||||
install:
|
install:
|
||||||
runtime-versions:
|
runtime-versions:
|
||||||
java: openjdk11
|
java: corretto17
|
||||||
pre_build:
|
pre_build:
|
||||||
commands:
|
commands:
|
||||||
- AWS_ACC=$(echo $CODEBUILD_BUILD_ARN | cut -d':' -f5)
|
- AWS_ACC=$(echo $CODEBUILD_BUILD_ARN | cut -d':' -f5)
|
||||||
- REPOSITORY_URI=$AWS_ACC.dkr.ecr.$AWS_REGION.amazonaws.com
|
- REPOSITORY_URI=$AWS_ACC.dkr.ecr.$AWS_REGION.amazonaws.com
|
||||||
- wget -O- https://apt.corretto.aws/corretto.key | sudo apt-key add -
|
|
||||||
- sudo add-apt-repository 'deb https://apt.corretto.aws stable main'
|
|
||||||
- sudo apt-get update; sudo apt-get install -y java-17-amazon-corretto-jdk
|
|
||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
- echo Build started on `date`
|
- echo Build started on `date`
|
||||||
|
|
Loading…
Reference in a new issue