aboutsummaryrefslogtreecommitdiff
path: root/scripts (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-09-23Use SQLite instead of PostgreSQL: simplify operations and backupEuAndreh1-9/+1
2020-09-22TODOs.orgEuAndreh1-0/+3
2020-09-22Refactor: simplify configuration.nix and put everything under /data/EuAndreh1-0/+22
Preparation for doing backups with borg of /data/ on cronjob.
2020-08-10Migration: Remove Ansible and Docker code, move only to NixOSEuAndreh8-244/+0
2020-08-09mail.sh: Add 'successful' messaging on the mail subjectEuAndreh1-1/+1
2020-08-08scripts/ci/setup.sh: Get GPG key from serverEuAndreh1-1/+1
Instead of storing it on the repository.
2020-08-02deploy.sh: mv -> cpEuAndreh1-1/+1
2020-08-02Rename DESTROY_VOLUME -> DESTROY_VPSEuAndreh1-1/+1
2020-08-02Revert "provision.env.yaml: Tweak relative paths"EuAndreh1-1/+2
This reverts commit cb15c40682b990697087380e102cd39fca47f6d9. Instead of the previous solution, copy the provision.yaml file before running the Ansible playbook.
2020-08-02provision.yaml: Use environment value of VPS_VOLUME_NAMEEuAndreh1-1/+2
2019-06-13s/See failed run:/See run:/EuAndreh1-1/+1
2019-06-13Specify email address when rotating keysEuAndreh1-2/+2
2019-06-11deploy.sh: assert dir before running finish-phaseEuAndreh1-0/+3
Avoid failures that happened between a pushd and a popd to fail to call ./scripts/ci/mail.sh.
2019-06-11Don't fail when =terraform apply= is a noopEuAndreh1-1/+1
2019-06-11Remove duplicated dangling shutdown codeEuAndreh1-5/+0
2019-06-11Run shutdown with Ansible instead of BashEuAndreh1-15/+13
2019-06-11Run Terraform refresh when not destroying everythingEuAndreh1-1/+2
2019-06-11Debug failing Ansible logsEuAndreh1-1/+1
2019-06-11s/mail_debug_log/finish_phase/EuAndreh1-2/+2
2019-06-11Log when finished runnign trapEuAndreh1-0/+2
2019-06-11Debug failing Ansible playbook logsEuAndreh1-1/+1
2019-06-11Log if trap was called on error or normal exitEuAndreh1-2/+10
2019-06-11Debug failing run of Ansible playbookEuAndreh1-1/+1
2019-06-11Run git crypt lock inside trap functionEuAndreh1-7/+7
2019-06-11Move envsubst calls out of setup.sh into deploy.shEuAndreh2-7/+9
2019-06-11Set the directory before sourcingEuAndreh1-1/+1
2019-06-10Quiet import GPGEuAndreh1-1/+1
2019-06-10Allow envrc to be sourced in CIEuAndreh1-3/+3
2019-06-10Reorder setup.shEuAndreh1-6/+6
2019-06-10Output all generated files on ./generated/, refactor .envrc variablesEuAndreh5-52/+47
2019-06-10Store updated Terraform files in case of failureEuAndreh1-0/+8
2019-06-10Only send log email when running on CIEuAndreh1-0/+7
2019-06-10ci dbgEuAndreh1-1/+1
2019-06-10Fix missing stdout redirection '>' characterEuAndreh1-1/+1
2019-06-10Trust commited keyEuAndreh1-1/+2
2019-06-10Add filename to logs.txt outputEuAndreh1-1/+1
Taken from: https://stackoverflow.com/questions/5917413/concatenate-multiple-files-but-include-filename-as-section-headers
2019-06-10Put terraform output in email logs.txtEuAndreh1-3/+3
2019-06-10Commit public key instead of downloading itEuAndreh1-1/+1
2019-06-10Import GPG key before provisioningEuAndreh1-0/+1
2019-06-10Disable SC2016 warningsEuAndreh1-0/+2
2019-06-10Change order of stderr -> stdout redirectionEuAndreh1-2/+2
Thanks ShellCheck.
2019-06-10Encrypt attached logEuAndreh1-1/+3
2019-06-10Show in email subject if the run failedEuAndreh2-2/+16
2019-06-10Send logs via email after finishing provision.shEuAndreh3-2/+44
The email will be send for both sucessfull and failed runs.
2019-06-10Remove --progress from borg createEuAndreh1-1/+0
It shows filenames in CI output log.
2019-06-10Use create_known_hosts_file function instead of duplicating behaviourEuAndreh1-3/+6
2019-06-10Fail CI run if backup failsEuAndreh1-3/+3
2019-06-10Don't run restore backup Ansible task when not requiredEuAndreh1-7/+0
Instead of performing this task on the generated =restore-backup.sh= file, do it on provision.yaml. The boolean logic is less confusing and the interpolation is less tricky.
2019-06-10Create generated-known-hosts.txt twiceEuAndreh1-0/+1
Since it can change after being destroyed by Terraform, we can't create it before and use it later.
2019-06-10Allow shutdown process to failEuAndreh1-2/+2