-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathbuildspec.yml
35 lines (31 loc) · 987 Bytes
/
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
version: 0.2
run-as: root
phases:
install:
commands:
- echo Entered the install phase...
- 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 Entered the pre_build phase...
build:
commands:
- echo Entered the build phase...
- echo Build started on `date`
finally:
- echo This always runs even if the build command fails
post_build:
commands:
- echo Entered the post_build phase...
- echo Build completed on `date`
# cache:
# paths:
# - "/root/.cache"
# - "/root/.yarn/**/*"
# - "/root/.npm/**/*" # npm cache
# - "/root/.gradle/**/*" # Gradle cache
# - "/root/.m2/**/*" # Maven cache
# - "/root/.docker" # Docker cache
# - "/root/.gem/**/*" # Gem cache
# - "/root/go/pkg/mod/**/*" # Go modules cache