forked from state-hiu/Mapgive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
buildspec.yml
27 lines (26 loc) · 902 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
version: 0.2
phases:
install:
runtime-versions:
nodejs: 12
commands:
- curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
- rm -f /etc/apt/sources.list.d/sbt.list
- apt update
- apt-get install optipng
- apt-get install libjpeg-progs -y
- gem install jekyll
- apt-get update --assume-yes --no-install-recommends
- gem install bundler
- bundle install
- ln -s /usr/bin/nodejs /usr/bin/node
- npm install
- npm install -g grunt-cli
build:
commands:
- echo "******** Run Grunt Task ********"
- grunt
- 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 '/*'