Only rebuild when code changes

This commit is contained in:
Alexandre Iooss 2019-02-09 08:45:16 +01:00
parent 9cee4b5ada
commit ebb716d5f2
2 changed files with 10 additions and 8 deletions

View file

@ -0,0 +1,9 @@
---
# Build front-end bundle
- name: Build front-end for CodiMD
command: npm run build
args:
chdir: /var/local/codimd/codimd
become: yes
become_user: codimd

View file

@ -13,6 +13,7 @@
version: 1.2.1 version: 1.2.1
become: yes become: yes
become_user: codimd become_user: codimd
notify: Build front-end for CodiMD
# Setup dependencies and configs # Setup dependencies and configs
- name: Install CodiMD depedencies - name: Install CodiMD depedencies
@ -22,14 +23,6 @@
become: yes become: yes
become_user: codimd become_user: codimd
# Build front-end bundle
- name: Build front-end for CodiMD
command: npm run build
args:
chdir: /var/local/codimd/codimd
become: yes
become_user: codimd
# Connection to database # Connection to database
- name: Connect CodiMD to PostgreSQL db - name: Connect CodiMD to PostgreSQL db
template: template: