This repository has been archived by the owner on Oct 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildspec.yml
49 lines (46 loc) · 1.5 KB
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
version: 0.2
#env:
#variables:
# key: "value"
# key: "value"
#parameter-store:
# key: "value"
# key: "value"
phases:
install:
runtime-versions:
docker: 18
java: openjdk8
commands:
- nohup /usr/local/bin/dockerd --host=unix:///var/run/docker.sock --host=tcp://127.0.0.1:2375 --storage-driver=overlay2&
- timeout 15 sh -c "until docker info; do echo .; sleep 1; done"
pre_build:
commands:
- echo Logging in to Amazon ECR....
- aws --version
# update the following line with your own region
- $(aws ecr get-login --no-include-email --region us-east-1)
build:
commands:
- echo Build started on `date`
- echo Executing Maven build...
- ./mvnw package
- echo Building the Docker image...
# update the following line with the name of your own ECR repository
- docker build -t pra/clubmanager .
# update the following line with the URI of your own ECR repository (view the Push Commands in the console)
- docker tag pra/clubmanager:latest 425610073499.dkr.ecr.us-east-1.amazonaws.com/pra/clubmanager:latest
post_build:
commands:
- echo Build completed on `date`
- echo pushing to repo
# update the following line with the URI of your own ECR repository
- docker push 425610073499.dkr.ecr.us-east-1.amazonaws.com/pra/clubmanager:latest
#artifacts:
# - location
# - location
#discard-paths: yes
#base-directory: location
#cache:
#paths:
# - paths