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
e719266c7e
commit
1c3446e113
1 changed files with 2 additions and 1 deletions
|
@ -3,7 +3,7 @@ version: 0.2
|
||||||
phases:
|
phases:
|
||||||
install:
|
install:
|
||||||
runtime-versions:
|
runtime-versions:
|
||||||
java: corretto11
|
java: openjdk11
|
||||||
pre_build:
|
pre_build:
|
||||||
commands:
|
commands:
|
||||||
- AWS_ACC=$(echo $CODEBUILD_BUILD_ARN | cut -d':' -f5)
|
- AWS_ACC=$(echo $CODEBUILD_BUILD_ARN | cut -d':' -f5)
|
||||||
|
@ -11,6 +11,7 @@ phases:
|
||||||
build:
|
build:
|
||||||
commands:
|
commands:
|
||||||
- echo Build started on `date`
|
- echo Build started on `date`
|
||||||
|
- mvn install
|
||||||
- mvn package
|
- mvn package
|
||||||
- docker build . -t $REPOSITORY_URI/${REPO}:latest
|
- docker build . -t $REPOSITORY_URI/${REPO}:latest
|
||||||
- echo Build completed on `date`
|
- echo Build completed on `date`
|
||||||
|
|
Loading…
Reference in a new issue