build(deps): bump cachix/install-nix-action from 91a071959513ca103b54280ac0bef5b825791d4d to 02a151ada4993995686f9ed4f1be7cfbb229e56f #272
Workflow file for this run
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
# yamllint disable rule:line-length | |
--- | |
name: "Build and Deploy" | |
on: # yamllint disable-line rule:truthy | |
workflow_dispatch: # allows manual triggering | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: | |
name: Homelab | |
url: "https://app.cachix.org/deploy/workspace/lab.thewagner.home/" | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
fetch-depth: 0 | |
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0 | |
- uses: cachix/install-nix-action@02a151ada4993995686f9ed4f1be7cfbb229e56f # v31 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
extra_nix_config: "extra-platforms = aarch64-linux" | |
- uses: cachix/cachix-action@0fc020193b5a1fa3ac4575aa3a7d3aa6a35435ad # v16 | |
with: | |
name: wagdav | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Check | |
run: nix flake check | |
- name: Build | |
run: nix build --print-build-logs .#cachix-deploy-spec | |
- name: Deploy | |
if: github.ref == 'refs/heads/master' | |
env: | |
CACHIX_ACTIVATE_TOKEN: "${{ secrets.CACHIX_ACTIVATE_TOKEN }}" | |
run: | | |
cachix push wagdav ./result | |
cachix deploy activate --async ./result |