From 0a9205ea8b092416580f1a85214125f97645ad5f Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Sat, 30 Dec 2023 07:49:00 +0100 Subject: [PATCH] Tasks and Deployer updates --- Taskfile.yml | 18 ++++++++++++++++++ deploy.yaml | 4 +++- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 Taskfile.yml diff --git a/Taskfile.yml b/Taskfile.yml new file mode 100644 index 0000000..8c9f37b --- /dev/null +++ b/Taskfile.yml @@ -0,0 +1,18 @@ +# https://taskfile.dev + +version: '3' + +vars: + GREETING: Hello, World! + +tasks: + default: + cmds: + - echo "{{.GREETING}}" + silent: true + deploy: + cmds: + - vendor/bin/dep deploy + build: + cmds: + - vendor/bin/dep build diff --git a/deploy.yaml b/deploy.yaml index e8df165..def2172 100644 --- a/deploy.yaml +++ b/deploy.yaml @@ -11,7 +11,9 @@ hosts: tasks: build: - - run: uptime + - cd: "/var/www/html/ikea/current" + - run: "npm install" + - run: "npm run build" after: deploy:failed: deploy:unlock