fix(yaskfile): lower case .taskfiles dirs (#1610)
This commit is contained in:
1 parent
182a403153
commit
b7273c2aaf
9 files changed
+20
-20
No files matched your search
@@ -40,7 +40,7 @@ jobs:
|
|||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
id: cache-homebrew-packages
|
id: cache-homebrew-packages
|
||||||
with:
|
with:
|
||||||
key: homebrew-${{ runner.os }}-${{ steps.setup-homebrew.outputs.gems-hash }}-${{ hashFiles('.taskfiles/Workstation/Brewfile') }}
|
key: homebrew-${{ runner.os }}-${{ steps.setup-homebrew.outputs.gems-hash }}-${{ hashFiles('.taskfiles/workstation/Brewfile') }}
|
||||||
path: /home/linuxbrew/.linuxbrew
|
path: /home/linuxbrew/.linuxbrew
|
||||||
|
|
||||||
- name: Cache venv
|
- name: Cache venv
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -6,7 +6,7 @@ tasks:
|
|||||||
|
|
||||||
arch:
|
arch:
|
||||||
desc: Set up Arch Linux tools
|
desc: Set up Arch Linux tools
|
||||||
cmd: '{{.PKGMGR}} -Syu --needed --noconfirm --noprogressbar $(cat {{.ROOT_DIR}}/.taskfiles/Workstation/Archfile | xargs)'
|
cmd: '{{.PKGMGR}} -Syu --needed --noconfirm --noprogressbar $(cat {{.ROOT_DIR}}/.taskfiles/workstation/Archfile | xargs)'
|
||||||
vars:
|
vars:
|
||||||
PKGMGR:
|
PKGMGR:
|
||||||
sh: command -v yay || command -v paru
|
sh: command -v yay || command -v paru
|
||||||
@@ -14,21 +14,21 @@ tasks:
|
|||||||
- msg: Missing yay or paru
|
- msg: Missing yay or paru
|
||||||
sh: command -v brew &>/dev/null || command -v paru &>/dev/null
|
sh: command -v brew &>/dev/null || command -v paru &>/dev/null
|
||||||
- msg: Missing Archfile
|
- msg: Missing Archfile
|
||||||
sh: test -f {{.ROOT_DIR}}/.taskfiles/Workstation/Archfile
|
sh: test -f {{.ROOT_DIR}}/.taskfiles/workstation/Archfile
|
||||||
|
|
||||||
brew:
|
brew:
|
||||||
desc: Set up Homebrew tools
|
desc: Set up Homebrew tools
|
||||||
cmds:
|
cmds:
|
||||||
- brew bundle --file {{.ROOT_DIR}}/.taskfiles/Workstation/Brewfile
|
- brew bundle --file {{.ROOT_DIR}}/.taskfiles/workstation/Brewfile
|
||||||
sources:
|
sources:
|
||||||
- '{{.ROOT_DIR}}/.taskfiles/Workstation/Brewfile'
|
- '{{.ROOT_DIR}}/.taskfiles/workstation/Brewfile'
|
||||||
generates:
|
generates:
|
||||||
- '{{.ROOT_DIR}}/.taskfiles/Workstation/Brewfile.lock.json'
|
- '{{.ROOT_DIR}}/.taskfiles/workstation/Brewfile.lock.json'
|
||||||
preconditions:
|
preconditions:
|
||||||
- msg: Missing brew
|
- msg: Missing brew
|
||||||
sh: command -v brew &>/dev/null
|
sh: command -v brew &>/dev/null
|
||||||
- msg: Missing Brewfile
|
- msg: Missing Brewfile
|
||||||
sh: test -f {{.ROOT_DIR}}/.taskfiles/Workstation/Brewfile
|
sh: test -f {{.ROOT_DIR}}/.taskfiles/workstation/Brewfile
|
||||||
|
|
||||||
direnv:
|
direnv:
|
||||||
desc: Run direnv hooks
|
desc: Run direnv hooks
|
||||||
@@ -100,7 +100,7 @@ You have two different options for setting up your local workstation.
|
|||||||
|
|
||||||
3. Install the additional **required** CLI tools
|
3. Install the additional **required** CLI tools
|
||||||
|
|
||||||
📍 _**Not using Homebrew or ArchLinux?** Try using the generic Linux task below, if that fails check out the [Brewfile](.taskfiles/Workstation/Brewfile)/[Archfile](.taskfiles/Workstation/Archfile) for what CLI tools needed and install them._
|
📍 _**Not using Homebrew or ArchLinux?** Try using the generic Linux task below, if that fails check out the [Brewfile](.taskfiles/workstation/Brewfile)/[Archfile](.taskfiles/workstation/Archfile) for what CLI tools needed and install them._
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Homebrew
|
# Homebrew
|
||||||
|
|||||||
+12
-12
@@ -17,10 +17,10 @@ env:
|
|||||||
VIRTUAL_ENV: '{{.ROOT_DIR}}/.venv'
|
VIRTUAL_ENV: '{{.ROOT_DIR}}/.venv'
|
||||||
|
|
||||||
includes:
|
includes:
|
||||||
bootstrap: .taskfiles/Bootstrap
|
bootstrap: .taskfiles/bootstrap
|
||||||
kubernetes: .taskfiles/Kubernetes
|
kubernetes: .taskfiles/kubernetes
|
||||||
talos: .taskfiles/Talos
|
talos: .taskfiles/talos
|
||||||
workstation: .taskfiles/Workstation
|
workstation: .taskfiles/workstation
|
||||||
user:
|
user:
|
||||||
taskfile: .taskfiles/User
|
taskfile: .taskfiles/User
|
||||||
optional: true
|
optional: true
|
||||||
@@ -33,9 +33,9 @@ tasks:
|
|||||||
desc: Initialize configuration files
|
desc: Initialize configuration files
|
||||||
cmds:
|
cmds:
|
||||||
- cp -n {{.BOOTSTRAP_CONFIG_FILE | replace ".yaml" ".sample.yaml"}} {{.BOOTSTRAP_CONFIG_FILE}}
|
- cp -n {{.BOOTSTRAP_CONFIG_FILE | replace ".yaml" ".sample.yaml"}} {{.BOOTSTRAP_CONFIG_FILE}}
|
||||||
- cmd: echo === Configuration file copied ===
|
- echo "=== Configuration file copied ==="
|
||||||
- cmd: echo Proceed with updating the configuration files...
|
- echo "Proceed with updating the configuration files..."
|
||||||
- cmd: echo {{.BOOTSTRAP_CONFIG_FILE}}
|
- echo "{{.BOOTSTRAP_CONFIG_FILE}}"
|
||||||
status:
|
status:
|
||||||
- test -f {{.BOOTSTRAP_CONFIG_FILE}}
|
- test -f {{.BOOTSTRAP_CONFIG_FILE}}
|
||||||
silent: true
|
silent: true
|
||||||
@@ -66,9 +66,9 @@ tasks:
|
|||||||
internal: true
|
internal: true
|
||||||
cmds:
|
cmds:
|
||||||
- task: kubernetes:kubeconform
|
- task: kubernetes:kubeconform
|
||||||
- cmd: echo === Done rendering and validating YAML ===
|
- echo "=== Done rendering and validating YAML ==="
|
||||||
- cmd: |
|
- '{{if eq .HOME_SOPS_AGE_KEY_FILE_EXISTS "true"}}echo "WARNING: SOPS Age key found in home directory, this may cause conflicts."{{end}}'
|
||||||
if test -f ~/.config/sops/age/keys.txt; then
|
vars:
|
||||||
echo WARNING: SOPS Age key found in home directory, this may cause conflicts.
|
HOME_SOPS_AGE_KEY_FILE_EXISTS:
|
||||||
fi
|
sh: test -f ~/.config/sops/age/keys.txt && echo true || echo false
|
||||||
silent: true
|
silent: true
|
||||||
Reference in new issue
Block a user