Add yarn build
to deploy playbook
also secret copying, which was required for the cached-data step
This commit is contained in:
parent
dde8cee1e3
commit
d17c4cea8b
1 changed files with 8 additions and 0 deletions
|
@ -13,3 +13,11 @@
|
||||||
cmd: yarn install
|
cmd: yarn install
|
||||||
register: result
|
register: result
|
||||||
changed_when: '"Already up-to-date." not in result.stdout'
|
changed_when: '"Already up-to-date." not in result.stdout'
|
||||||
|
- name: Copy our local .env secrets file to the server
|
||||||
|
copy:
|
||||||
|
src: ../../.env
|
||||||
|
dest: /srv/impress-2020/latest-version
|
||||||
|
- name: Run `yarn build` to build the production app
|
||||||
|
command:
|
||||||
|
chdir: /srv/impress-2020/latest-version
|
||||||
|
cmd: yarn build
|
||||||
|
|
Loading…
Reference in a new issue