forked from awslabs/aws-ec2rescue-linux
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuildspec.yml
21 lines (20 loc) · 800 Bytes
/
buildspec.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 0.2
phases:
install:
commands:
- echo "Nothing to do in the install phase..."
pre_build:
commands:
- chmod +x ec2rl
build:
commands:
- echo "Build started on $(date)"
- make all
- if [ "$NIGHTLY" == "TRUE" ]; then echo "Detected nightly build env var" && mv -v ec2rl.tgz ec2rl-nightly.tgz && mv -v ec2rl.tgz.sha256 ec2rl-nightly.tgz.sha256 && sed -i 's/ec2rl.tgz/ec2rl-nightly.tgz/' ec2rl-nightly.tgz.sha256 && mv -v ec2rl-binary.tgz ec2rl-nightly-binary.tgz && mv -v ec2rl-binary.tgz.sha256 ec2rl-nightly-binary.tgz.sha256 && sed -i 's/ec2rl-binary.tgz/ec2rl-nightly-binary.tgz/' ec2rl-nightly-binary.tgz.sha256; fi
post_build:
commands:
- echo "Build completed on $(date)"
artifacts:
files:
- ec2rl*tgz
- ec2rl*sha256