forked from mikestead/ecs-task-deploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuildspec.yml
More file actions
26 lines (25 loc) · 777 Bytes
/
buildspec.yml
File metadata and controls
26 lines (25 loc) · 777 Bytes
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
version: 0.2
env:
variables:
ECSTASKDEPLOY: "ecs-task-deploy -r us-east-1 -c simplecluster -n simplewebappdevserv -i 839749875901.dkr.ecr.us-east-1.amazonaws.com/simplewebappdev:latest --kill-task simplewebappdev"
phases:
install:
commands:
- echo Entered the install phase...
- apt-get update -y
- apt-get -y --force-yes install nodejs
- apt-get -y --force-yes install npm
- npm install n -g
- n 4.5.0
pre_build:
commands:
- echo Logging in to Amazon ECR...
- eval $(aws ecr get-login)
build:
commands:
- npm install -g ecs-task-deploy
- update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
- $ECSTASKDEPLOY
post_build:
commands:
- echo Build ended on `date`