-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathghost.opt.pb
More file actions
25 lines (25 loc) · 872 Bytes
/
ghost.opt.pb
File metadata and controls
25 lines (25 loc) · 872 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
---
- hosts: all
gather_facts: False
vars:
TYPE: ghost
INSTANCE: git
REPO: https://github.com/rektide/ghost
gems:
- bourbon
- sass
GEM_HOME: "{{DIR}}/gems"
vars_files:
- vars/common.vars
- vars/opt.vars
tasks:
- include: tasks/cfvar_includes.tasks
- shell: chdir={{DIR}} git submodule update --init
- shell: chdir={{DIR}} npm install
- shell: chdir={{DIR}} GEM_HOME={{GEM_HOME}} gem install {{item}}
with_items: gems
- shell: chdir={{DIR}} GEM_HOME={{GEM_HOME}} PATH={{GEM_HOME}}/bin bourbon install
- shell: chdir={{DIR}} GEM_HOME={{GEM_HOME}} PATH={{GEM_HOME}}/bin:"$PATH" grunt build
- file: src={{DIR}}/.dist/build/Ghost-Build.zip dest={{DIR}}/ghost.zip state=link
- file: src={{DIR}}/ghost.zip dest={{SRCS_DIR}}/ghost.zip state=link
- file: src={{DIR}}/ghost.zip dest={{SRCS_DIR}}/{{NAME}}.zip state=link