From d17c4cea8b441def8aa5a225ab3d5acd1559ce1f Mon Sep 17 00:00:00 2001 From: Matchu Date: Tue, 2 Nov 2021 16:45:07 -0700 Subject: [PATCH] Add `yarn build` to deploy playbook also secret copying, which was required for the cached-data step --- deploy/playbooks/deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/deploy/playbooks/deploy.yml b/deploy/playbooks/deploy.yml index 859a437..951f87d 100644 --- a/deploy/playbooks/deploy.yml +++ b/deploy/playbooks/deploy.yml @@ -13,3 +13,11 @@ cmd: yarn install register: result 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