diff --git a/buildspec.yml b/buildspec.yml index 374dda2c..a9ad5342 100644 --- a/buildspec.yml +++ b/buildspec.yml @@ -6,15 +6,18 @@ phases: docker: 19 pre_build: commands: + - echo Logging in to Amazon ECR... - aws --version - $(aws ecr get-login --region $AWS_DEFAULT_REGION --no-include-email) - REPOSITORY_URI=679918342773.dkr.ecr.us-east-1.amazonaws.com/integreat - COMMIT_HASH=$(echo $CODEBUILD_RESOLVED_SOURCE_VERSION | cut -c 1-7) - IMAGE_TAG=${COMMIT_HASH:=latest} + - wget https://raw.github.com/technomancy/leiningen/stable/bin/lein + - chmod +x lein build: commands: - - lein build + - ./lein build - echo Build started on `date` - echo Building the Docker image... - docker build -t $REPOSITORY_URI:latest .