| Commit message (Collapse) | Author | Files | Lines | ||
|---|---|---|---|---|---|
| 2019-05-27 | Add --color to ls alias | EuAndreh | 1 | -1/+1 | |
| 2019-05-27 | Add cd to /home/vps/ in profile | EuAndreh | 1 | -0/+1 | |
| Just a nice to have when SSH'ing interactively, doesn't have and effect on non-interactive SSH commands. | |||||
| 2019-05-27 | Use ssh pipe and cat instead of hacky temporary file descriptor | EuAndreh | 1 | -3/+1 | |
| Taken from http://compgroups.net/comp.unix.shell/-scp-dev-fd-63-not-a-regular-file/3063561 | |||||
| 2019-05-27 | WIP: take a backup during deployment | EuAndreh | 2 | -2/+11 | |
| Before possibly tearing down the machine, while all services are stopped (after the =docker-compose down= command), create a new backup with the current data. The backup tag should include the commit SHA of the deployment. | |||||
| 2019-05-27 | Add more descriptive error message for FIXME derivation test | EuAndreh | 1 | -1/+5 | |
| 2019-05-27 | Add bash_aliases.sh and scp it when deploying a new box | EuAndreh | 2 | -0/+4 | |
| 2019-05-27 | Add Nextcloud recipe to docker-compose.yaml | EuAndreh | 2 | -0/+19 | |
| 2019-05-27 | Use Bash variables for domain names and container ports | EuAndreh | 2 | -9/+9 | |
| 2019-05-27 | Fix formatting of default.nix (linter offense) | EuAndreh | 1 | -7/+2 | |
| 2019-05-27 | Revert Terraform to "default" version | EuAndreh | 1 | -1/+1 | |
| 2019-05-27 | TODOs.org | EuAndreh | 1 | -4/+25 | |
| 2019-05-26 | Run terraform init before running terraform apply | EuAndreh | 1 | -0/+1 | |
| 2019-05-26 | Use Terraform 0.12.0 in nix-shell and CI | EuAndreh | 1 | -2/+7 | |
| 2019-05-26 | ci dbg | EuAndreh | 1 | -0/+1 | |
| 2019-05-26 | Change permission of ./secrets/id_rsa after git crypt unlock | EuAndreh | 1 | -0/+2 | |
| 2019-05-26 | Disable StrictHostKeyChecking for SSH access | EuAndreh | 1 | -0/+1 | |
| 2019-05-26 | Fix missing argument to ssh | EuAndreh | 1 | -1/+1 | |
| 2019-05-26 | Fix call to ./provision.sh in .build.yml | EuAndreh | 1 | -1/+1 | |
| 2019-05-26 | Specify shell type to ShellCheck in nix-shell shebang files | EuAndreh | 2 | -0/+2 | |
| 2019-05-26 | Format default.nix (nixfmt offense) | EuAndreh | 1 | -7/+2 | |
| 2019-05-26 | Use more robust Bash cd approach | EuAndreh | 4 | -3/+3 | |
| 2019-05-26 | Run CI scripts from ./vps/ folder | EuAndreh | 1 | -2/+5 | |
| 2019-05-26 | Use nix-shell shebang to run CI scripts | EuAndreh | 3 | -8/+7 | |
| 2019-05-26 | Use nix-shell --pure to run scripts | EuAndreh | 2 | -4/+11 | |
| Instead of adding them to the =packages= section of .build.yml. | |||||
| 2019-05-26 | TODOs.org | EuAndreh | 1 | -3/+12 | |
| 2019-05-26 | Prepare builds.sr.ht CI environment before running build tasks | EuAndreh | 5 | -13/+21 | |
| Make content of .envrc available to subsequent build jobs. | |||||
| 2019-05-26 | Unlock with git-crypt in setup phase | EuAndreh | 2 | -9/+5 | |
| 2019-05-26 | Revert back from Debian to NixOS | EuAndreh | 1 | -5/+3 | |
| 2019-05-26 | TODOs.org | EuAndreh | 1 | -10/+34 | |
| 2019-05-26 | Perform single-user installation of Nix | EuAndreh | 1 | -3/+1 | |
| 2019-05-26 | Change ownership to build instead of root of /nix | EuAndreh | 1 | -1/+2 | |
| 2019-05-26 | Create Nix store with sudo before installing Nix | EuAndreh | 1 | -1/+2 | |
| 2019-05-26 | Create Nix store with sudo | EuAndreh | 1 | -1/+1 | |
| 2019-05-26 | Change GPG secret reference | EuAndreh | 1 | -1/+1 | |
| 2019-05-26 | TODOs.org | EuAndreh | 1 | -1/+8 | |
| 2019-05-26 | Fix terraform fmt offense | EuAndreh | 1 | -1/+1 | |
| 2019-05-26 | Run shellcheck on Bash files stored in git-crypt | EuAndreh | 2 | -2/+3 | |
| 2019-05-26 | Disable shellcheck 2139 offense | EuAndreh | 2 | -0/+2 | |
| 2019-05-26 | Remove extra newline at "Done.\n" messages | EuAndreh | 2 | -8/+8 | |
| 2019-05-26 | Fix unexpected shell scaping | EuAndreh | 1 | -1/+1 | |
| 2019-05-26 | Change GPG secret reference | EuAndreh | 1 | -2/+1 | |
| 2019-05-26 | Test using Debian to correctly import GPG secret | EuAndreh | 1 | -4/+6 | |
| Right now the NixOS image tries to import the GPG before installing GPG. Adding it as a package doesn't solve it. | |||||
| 2019-05-26 | Add gnupg to allow pipeline to import GPG keys | EuAndreh | 2 | -1/+3 | |
| 2019-05-26 | Automate provisioning and deployment of VPS | EuAndreh | 10 | -11/+83 | |
| In order to perform that I had to remove Terraform's =.tfstate= files from the repository. Terraform does support "backends" for storing the state files, but I settled for storing it on a separate repo (vps-state). For now it solves the state management problem: - it has history of states; - all state files are GPG encrypted; - there's no coordination however, but only the CI should perform a deploy in order to avoid race conditions. I had to add GPG and SSH keys to sr.ht to achieve that: - SSH public key to my profile to authorize it to push to vps-state repo; - SSH private key to the secret builds.sr.ht environment to enable push to the repository from the pipeline; - GPG public key to git-crypt to make it possible for the pipeline to unlock the encrypted content; - GPG private key to the secret builds.sr.ht environment to enable decrypting git-crypt content from the pipeline. In order to avoid divergent environment from local and CI, the ./provision.sh script is ran through nix-shell. | |||||
