Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

Commit

Permalink
refactor(task): use .ROOT_DIR
Browse files Browse the repository at this point in the history
  • Loading branch information
JesusMtnez committed Sep 6, 2023
1 parent 6f80ce9 commit 466371b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .taskfiles/kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
version: "3"

env:
KUBECONFIG: "{{.PROJECT_DIR}}/provision/kubeconfig"
KUBECONFIG: "{{.ROOT_DIR}}/provision/kubeconfig"

tasks:
list:
Expand Down
8 changes: 3 additions & 5 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,13 @@
version: "3"

vars:
PROJECT_DIR:
sh: "git rev-parse --show-toplevel"
ANSIBLE_DIR: "{{.ROOT_DIR}/provision/ansible"

env:
KUBECONFIG: "{{.PROJECT_DIR}}/provision/kubeconfig"

includes:
ansible: .taskfiles/ansible.yml
k8s: .taskfiles/kubernetes.yml
linter: .taskfiles/linter.yml
format: .taskfiles/formatter.yml

tasks:
default: task -l

0 comments on commit 466371b

Please sign in to comment.