fix(hosts/caroline): Make the R packages override into a variable to β¦ #238
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: | |
- main | |
paths: | |
- '**.nix' | |
- '**.age' | |
- 'flake.lock' | |
concurrency: | |
group: ci-${{ github.ref }}-deploy | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: Check βοΈ | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v13 | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: etu | |
extraPullNames: 'nix-community' | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Check the flake | |
run: 'nix flake check' | |
deploy: | |
name: Deploy π | |
runs-on: ubuntu-22.04 | |
needs: check | |
# Don't cancel jobs if one job fails | |
continue-on-error: true | |
strategy: | |
matrix: | |
hostname: | |
- server-main-elis | |
- server-sparv | |
- vps06 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@v13 | |
- uses: DeterminateSystems/magic-nix-cache-action@v7 | |
- uses: cachix/cachix-action@v15 | |
with: | |
name: etu | |
extraPullNames: 'nix-community' | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
# Build systems. | |
- name: Build system derivation | |
run: 'nix build .#nixosConfigurations.${{ matrix.hostname }}.config.system.build.toplevel' | |
# Configure SSH key | |
- uses: shimataro/ssh-key-action@v2 | |
with: | |
key: ${{ secrets.SSH_PRIVATE_KEY }} | |
name: id_ed25519 | |
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }} | |
# Deploy systems | |
- name: Deploy system | |
run: 'nix develop -c deploy --skip-checks --targets .#${{ matrix.hostname }}' |