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