Remove homepage dashboard #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
concurrency: deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: nixbuild/nix-quick-install-action@v25 | |
with: | |
nix_conf: | | |
substituters = https://cache.nixos.org/ | |
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= | |
keep-outputs = true | |
- name: Restore and cache Nix store | |
uses: nix-community/[email protected] | |
with: | |
key: nix-cache | |
gc-linux: true | |
gc-max-store-size-linux: 10000000000 | |
purge: true | |
purge-accessed: true | |
purge-accessed-max-age: 3600 | |
- name: Cache Pulumi venv | |
uses: actions/cache@v3 | |
with: | |
path: pulumi/venv | |
key: pulumi-venv | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Lint nix | |
run: nix develop --command -- statix check | |
- name: Provision Infrastructure | |
run: nix develop --command -- deploy-pulumi --yes --non-interactive | |
env: | |
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }} | |
- name: Provision Servers | |
run: nix develop --command -- deploy-colmena apply --build-on-target --on @enabled | |
env: | |
SOPS_AGE_KEY: ${{ secrets.SOPS_AGE_KEY }} |