aboutsummaryrefslogtreecommitdiff
path: root/.build.yml (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-06-13TODOs.orgEuAndreh1-1/+1
2019-06-11Revert "Install gitMinimal package to allow getting git SHA in .buildenv"EuAndreh1-2/+0
This reverts commit 8bb7cd9d1f090a3e20e212566746b61a5f1fe4e9.
2019-06-11Install gitMinimal package to allow getting git SHA in .buildenvEuAndreh1-0/+2
2019-06-10Output all generated files on ./generated/, refactor .envrc variablesEuAndreh1-1/+1
2019-06-09Remove CI dbg codeEuAndreh1-2/+0
2019-06-09ci dbgEuAndreh1-0/+2
2019-06-05cd into ./vps/ before running CI commandsEuAndreh1-3/+6
2019-06-05Revert "Use =nix build= instead of =nix-build="EuAndreh1-1/+1
This reverts commit c835e5ed00690d5dc05f4073ad2f7d52e56fe502. The =nix build= command isn't CI friendly: it prints many empty lines instead of the build progress.
2019-06-04Use =nix build= instead of =nix-build=EuAndreh1-1/+1
2019-05-28Rotate SSH key and use correct VPS_COMMIT_SHA on provisioningEuAndreh1-1/+1
2019-05-28Rotate SSH key secretEuAndreh1-1/+1
2019-05-28Configure git for vps-state repo in ./scripts/ci/setup.shEuAndreh1-1/+1
2019-05-28Use SSH to fetch vps-state so we can push to it laterEuAndreh1-1/+1
2019-05-28Fix script references in .build.ymlEuAndreh1-6/+3
2019-05-26Fix call to ./provision.sh in .build.ymlEuAndreh1-1/+1
2019-05-26Run CI scripts from ./vps/ folderEuAndreh1-2/+5
2019-05-26Use nix-shell shebang to run CI scriptsEuAndreh1-6/+3
2019-05-26Use nix-shell --pure to run scriptsEuAndreh1-2/+3
Instead of adding them to the =packages= section of .build.yml.
2019-05-26Prepare builds.sr.ht CI environment before running build tasksEuAndreh1-5/+2
Make content of .envrc available to subsequent build jobs.
2019-05-26Unlock with git-crypt in setup phaseEuAndreh1-1/+3
2019-05-26Revert back from Debian to NixOSEuAndreh1-5/+3
2019-05-26Perform single-user installation of NixEuAndreh1-3/+1
2019-05-26Change ownership to build instead of root of /nixEuAndreh1-1/+2
2019-05-26Create Nix store with sudo before installing NixEuAndreh1-1/+2
2019-05-26Create Nix store with sudoEuAndreh1-1/+1
2019-05-26Change GPG secret referenceEuAndreh1-1/+1
2019-05-26Run shellcheck on Bash files stored in git-cryptEuAndreh1-0/+2
2019-05-26Change GPG secret referenceEuAndreh1-2/+1
2019-05-26Test using Debian to correctly import GPG secretEuAndreh1-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-26Add gnupg to allow pipeline to import GPG keysEuAndreh1-0/+2
2019-05-26Automate provisioning and deployment of VPSEuAndreh1-0/+7
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.
2019-05-25Add lint checks and a pipeline to check using NixEuAndreh1-0/+13