-
Notifications
You must be signed in to change notification settings - Fork 573
/
buildspec.yml
37 lines (32 loc) · 898 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
36
37
version: 0.1
meta: |
AWS CodeBuild buildspec.yml
The dependencies are downloaded and the binary built outside of the GOPATH.
This requies special consideration is necessary. GOROOT is not set by default.
GOPATH is set to /go. GOBIN is necessary for the prebuild go get phase.
The repo source must be installed to the GOPATH.
environment_variables:
plaintext:
PHASE: "build"
PROJECT: "feh-2018"
AWS_DEFAULT_REGION: "us-west-2"
phases:
pre_build:
commands:
- apt-get update -y
- curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
- apt-get install -y --force-yes nodejs
- npm install
build:
commands:
- echo Build started on `date`
- npm run build
post_build:
commands:
- echo build completed started on `date`
artifacts:
type: zip
files:
- _book/**/*
- appspec.yml
discard-paths: no