add buildspec.yml file

This commit is contained in:
unknown 2023-08-18 20:40:01 -04:00
parent 337c44dee2
commit c005029bc5

View file

@ -3,16 +3,13 @@ version: 0.2
phases: phases:
install: install:
runtime-versions: runtime-versions:
java: latest 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
- uname -a - uname -a
- java -version - java -version
- dnf
- dnf install java-17-amazon-corretto-devel
- java -version
build: build:
commands: commands:
- echo Build started on `date` - echo Build started on `date`