Skip to content

Commit

Permalink
run doctor before init
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfara committed Feb 25, 2024
1 parent af5c93f commit a9dd23e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
26 changes: 13 additions & 13 deletions .chezmoi.toml.tmpl
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{{- $email := promptString "email" -}}
{{- $gpgkey := promptString "GPG key" -}}
{{- $restic_password := promptString "restic password" -}}
{{- $restic_repository := promptString "restic repository" -}}
{{- $backblaze_id := promptString "Backblaze account ID" -}}
{{- $backblaze_key := promptString "Backblaze Key" -}}
{{- $backup_path := promptString "Backup path" -}}
{{- $healthchecks := promptString "Healthchecks device id" -}}
{{- $email := promptStringOnce "email" "What is your email address" -}}
{{- $gpgkey := promptStringOnce "gpgkey" "GPG key" -}}
{{- $resticpassword := promptStringOnce "resticpassword" "restic password" -}}
{{- $resticrepository := promptStringOnce "resticrepository" "restic repository" -}}
{{- $backblazeid := promptStringOnce "backblazeid" "Backblaze account ID" -}}
{{- $backblazekey := promptStringOnce "backblazekey" "Backblaze Key" -}}
{{- $backuppath := promptStringOnce "backuppath" "Backup path" -}}
{{- $healthchecks := promptStringOnce "healthchecks" "Healthchecks device id" -}}

[data]
email = {{ $email | quote }}
gpgkey = {{ $gpgkey | quote }}
[data.restic]
path = {{ $backup_path | quote }}
password = {{ $restic_password | quote }}
repository = {{ $restic_repository | quote }}
b2accountid = {{ $backblaze_id | quote }}
b2accountkey = {{ $backblaze_key | quote }}
path = {{ $backuppath | quote }}
password = {{ $resticpassword | quote }}
repository = {{ $resticrepository | quote }}
b2accountid = {{ $backblazeid | quote }}
b2accountkey = {{ $backblazekey | quote }}
healthchecks = {{ $healthchecks | quote }}
encryption = "gpg"
[gpg]
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ jobs:
cp .chezmoi.toml.example $HOME/.config/chezmoi/chezmoi.toml
sed -i 's/GPG_PASSPHRASE/${{ secrets.GPG_PASSPHRASE }}/g' $HOME/.config/chezmoi/chezmoi.toml
cat $HOME/.config/chezmoi/chezmoi.toml
mkdir -p ~/.local/share/chezmoi
- name: Run chezmoi
run: |
chezmoi --config $HOME/.config/chezmoi/chezmoi.toml init ${{ github.server_url }}/${{ github.repository }}.git
chezmoi apply --verbose
chezmoi doctor
chezmoi apply --verbose --no-tty

0 comments on commit a9dd23e

Please sign in to comment.