This commit is contained in:
parent
36cd77c697
commit
3cbb524d63
@ -10,6 +10,8 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- name: Install jq
|
||||||
|
run: apt-get update -y && apt-get install -y jq
|
||||||
- uses: cachix/install-nix-action@v23
|
- uses: cachix/install-nix-action@v23
|
||||||
with:
|
with:
|
||||||
# Gitea will supply a token in GITHUB_TOKEN, which this action will
|
# Gitea will supply a token in GITHUB_TOKEN, which this action will
|
||||||
@ -18,16 +20,16 @@ jobs:
|
|||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
# Make sure we're using sandbox
|
# Make sure we're using sandbox
|
||||||
sandbox-fallback = false
|
sandbox-fallback = false
|
||||||
- name: Fix Nix path
|
extra-substituters = https://nix-cache.nul.ie/main
|
||||||
run: ln -s $(which nix) /usr/local/bin/nix
|
trusted-public-keys = main:a2CtSxCXCXKabLa6IYQWzy3rdYjOwg9Ccm4ayahFjDI=
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
- name: Set up attic
|
||||||
env:
|
run: |
|
||||||
# Arch is amd64 in Gitea actions, this forms the download path for the cache
|
nix run .#nixpkgs.mine.x86_64-linux.attic-client -- \
|
||||||
RUNNER_ARCH: X64
|
login --set-default colony https://nix-cache.nul.ie "${{ secrets.NIX_CACHE_TOKEN }}"
|
||||||
|
|
||||||
- name: Write agenix secrets key to file
|
# - name: Check flake
|
||||||
env:
|
# run: nix flake check
|
||||||
KEY: ${{ secrets.AGENIX_SECRETS_KEY }}
|
- name: Push to cache
|
||||||
run: printf "$KEY" > .keys/ci.key
|
run: |
|
||||||
- name: Check flake
|
path=$(nix build --no-link .#nixosConfigurations.middleman.config.system.build.toplevel --json | jq -r .[0].outputs.out)
|
||||||
run: nix flake check
|
attic push main $path
|
||||||
|
Loading…
Reference in New Issue
Block a user