Skip to content

Populate cache

Populate cache #97

name: Populate cache
on:
workflow_dispatch:
workflow_run:
workflows: ["CI"]
branches: [main]
types:
- completed
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-24.04
if: ${{ github.event.workflow_run.conclusion == 'success' }}
strategy:
matrix:
system:
- { name: azura, platform: x86_64-linux }
- { name: namira, platform: x86_64-linux }
steps:
- name: Checkout
uses: actions/checkout@v4
- name: NixInstaller
uses: DeterminateSystems/nix-installer-action@main
- name: Tailscale
uses: tailscale/github-action@v2
with:
oauth-client-id: ${{ secrets.TAILSCALE_OAUTH_CLIENT_ID }}
oauth-secret: ${{ secrets.TAILSCALE_OAUTH_CLIENT_SECRET }}
tags: tag:deploy-rs
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ vars.ATTIC_ENDPOINT }}
cache: ${{ vars.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- name: Build ${{ matrix.system.name }}
run: |
nix run nixpkgs#nixos-rebuild -- build --flake .#${{ matrix.system.name }}