treewide: change cache url

This commit is contained in:
Nikodem Rabuliński 2024-02-11 20:14:02 +01:00
parent b9c6372371
commit b29deecda5
4 changed files with 27 additions and 13 deletions

20
.github/actions/attic-push/action.yaml vendored Normal file
View file

@ -0,0 +1,20 @@
name: "Attic push"
inputs:
from:
default: "."
server-url:
default: "https://attic.nrab.lol/"
server-name:
default: "nrab-attic"
cache:
default: "public"
paths:
default: "result"
token:
default: ${{ secrets.ATTIC_TOKEN }}
runs:
using: "composite"
steps:
- run: |
nix run "${{ inputs.from }}"#attic -- login "${{ inputs.server-name }}" '${{ inputs.server-url }}' '${{ inputs.token }}'
nix run "${{ inputs.from }}"#attic -- push "${{ inputs.server-name }}":"${{ inputs.cache }}" ${{ inputs.paths }}

View file

@ -16,12 +16,12 @@ runs:
extra-substituters = https://nix-community.cachix.org
extra-substituters = https://hercules-ci.cachix.org
extra-substituters = https://nrabulinski.cachix.org
extra-substituters = https://cache.nrab.lol/public
extra-substituters = https://cache.nrab.lol
extra-trusted-public-keys = hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc=
extra-trusted-public-keys = cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g=
extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
extra-trusted-public-keys = hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0=
extra-trusted-public-keys = nrabulinski.cachix.org-1:Q5FD7+1c68uH74CQK66UWNzxhanZW8xcg1LFXxGK8ic=
extra-trusted-public-keys = public:wIIyvCTlsk39uwKlBFOuVY+BXrPY3lUNAEpDN4H+O0Q=
extra-trusted-public-keys = cache.nrab.lol-1:wIIyvCTlsk39uwKlBFOuVY+BXrPY3lUNAEpDN4H+O0Q=
${{ inputs.extra-conf }}
- uses: DeterminateSystems/magic-nix-cache-action@main

View file

@ -37,9 +37,7 @@ jobs:
- name: Build output
run: nix build .#${{ matrix.output }} -L
- name: Push output
run: |
nix run .#attic -- login nrab-attic 'https://cache.nrab.lol/' ${{ secrets.ATTIC_TOKEN }}
nix run .#attic -- push nrab-attic:public result
uses: ./.github/actions/attic-push
build-aarch64-darwin:
runs-on: macos-14
@ -55,9 +53,7 @@ jobs:
- name: Build output
run: nix build .#${{ matrix.output }} -L
- name: Push output
run: |
nix run .#attic -- login nrab-attic 'https://cache.nrab.lol/' ${{ secrets.ATTIC_TOKEN }}
nix run .#attic -- push nrab-attic:public result
uses: ./.github/actions/attic-push
build-aarch64-linux:
runs-on: [Linux, ARM64, nix]
@ -72,9 +68,7 @@ jobs:
- name: Build output
run: nix build .#${{ matrix.output }} -L
- name: Push output
run: |
nix run .#attic -- login nrab-attic 'https://cache.nrab.lol/' ${{ secrets.ATTIC_TOKEN }}
nix run .#attic -- push nrab-attic:public result
uses: ./.github/actions/attic-push
all-built:
runs-on: ubuntu-latest

View file

@ -58,7 +58,7 @@
"https://nix-community.cachix.org"
"https://hercules-ci.cachix.org"
"https://nrabulinski.cachix.org"
"https://cache.nrab.lol/public"
"https://cache.nrab.lol"
];
extra-trusted-public-keys = [
"hyprland.cachix.org-1:a7pgxzMz7+chwVL3/pzj6jIBMioiJM7ypFP8PwtkuGc="
@ -66,7 +66,7 @@
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"hercules-ci.cachix.org-1:ZZeDl9Va+xe9j+KqdzoBZMFJHVQ42Uu/c/1/KMC5Lw0="
"nrabulinski.cachix.org-1:Q5FD7+1c68uH74CQK66UWNzxhanZW8xcg1LFXxGK8ic="
"public:wIIyvCTlsk39uwKlBFOuVY+BXrPY3lUNAEpDN4H+O0Q="
"cache.nrab.lol-1:CJl1TouOyuJ1Xh4tZSXLwm3Upt06HzUNZmeyuEB9EZg="
];
};
};