forked from OWASP/samm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wercker.yml
59 lines (57 loc) · 1.81 KB
/
wercker.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# This references a standard debian container from the
# Docker Hub https://registry.hub.docker.com/_/debian/
# Read more about containers on our dev center
# http://devcenter.wercker.com/docs/containers/index.html
box: debian
# You can also use services such as databases. Read more on our dev center:
# http://devcenter.wercker.com/docs/services/index.html
# services:
# - postgres
# http://devcenter.wercker.com/docs/services/postgresql.html
# - mongo
# http://devcenter.wercker.com/docs/services/mongodb.html
# This is the build pipeline. Pipelines are the core of wercker
# Read more about pipelines on our dev center
# http://devcenter.wercker.com/docs/pipelines/index.html
build:
# Steps make up the actions in your pipeline
# Read more about steps on our dev center:
# http://devcenter.wercker.com/docs/steps/index.html
steps:
- arjen/hugo-build:
version: "0.53"
basedir: "Website/hugo"
build-css:
box: node:11
steps:
- npm-install
#- maestrohealthcaretechnologies/[email protected]:
# options: -g gulp
- script:
name: Install and run gulp
code: |
cd ./Website/
npm install -g gulp
npm install semantic-ui --save
cd semantic/
gulp build
deploy:
steps:
- install-packages:
packages: git ssh-client
- lukevivier/gh-pages:
token: $GIT_TOKEN
domain: owaspsamm.org
basedir: "Website/hugo/public"
deploy-uat:
steps:
- script:
name: Create index.php to make Heroku think we're a PHP
code: |
cd Website/hugo/public/
echo "<?php header( 'Location: /index.html' ) ; ?>" > index.php
- heroku-deploy:
source_dir: Website/hugo/public/
key: $HEROKU_KEY
user: $HEROKU_USER
app-name: samm-testing