.github: fix push job
This commit is contained in:
parent
b1b68dd2e9
commit
4cd9915a7c
3 changed files with 10 additions and 24 deletions
20
.github/actions/attic-push/action.yaml
vendored
20
.github/actions/attic-push/action.yaml
vendored
|
@ -1,20 +0,0 @@
|
||||||
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 }}
|
|
2
.github/actions/install-nix/action.yaml
vendored
2
.github/actions/install-nix/action.yaml
vendored
|
@ -22,6 +22,6 @@ runs:
|
||||||
extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
|
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 = 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 = nrabulinski.cachix.org-1:Q5FD7+1c68uH74CQK66UWNzxhanZW8xcg1LFXxGK8ic=
|
||||||
extra-trusted-public-keys = cache.nrab.lol-1:wIIyvCTlsk39uwKlBFOuVY+BXrPY3lUNAEpDN4H+O0Q=
|
extra-trusted-public-keys = cache.nrab.lol-1:CJl1TouOyuJ1Xh4tZSXLwm3Upt06HzUNZmeyuEB9EZg=
|
||||||
${{ inputs.extra-conf }}
|
${{ inputs.extra-conf }}
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||||
|
|
12
.github/workflows/build.yaml
vendored
12
.github/workflows/build.yaml
vendored
|
@ -36,7 +36,9 @@ jobs:
|
||||||
- name: Build output
|
- name: Build output
|
||||||
run: nix build .#${{ matrix.output }} -L
|
run: nix build .#${{ matrix.output }} -L
|
||||||
- name: Push output
|
- name: Push output
|
||||||
uses: ./.github/actions/attic-push
|
run: |
|
||||||
|
nix run .#attic -- login nrab-attic 'https://attic.nrab.lol' ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
nix run .#attic -- push nrab-attic:public result
|
||||||
|
|
||||||
build-aarch64-darwin:
|
build-aarch64-darwin:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
@ -52,7 +54,9 @@ jobs:
|
||||||
- name: Build output
|
- name: Build output
|
||||||
run: nix build .#${{ matrix.output }} -L
|
run: nix build .#${{ matrix.output }} -L
|
||||||
- name: Push output
|
- name: Push output
|
||||||
uses: ./.github/actions/attic-push
|
run: |
|
||||||
|
nix run .#attic -- login nrab-attic 'https://attic.nrab.lol' ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
nix run .#attic -- push nrab-attic:public result
|
||||||
|
|
||||||
build-aarch64-linux:
|
build-aarch64-linux:
|
||||||
runs-on: [Linux, ARM64, nix]
|
runs-on: [Linux, ARM64, nix]
|
||||||
|
@ -67,7 +71,9 @@ jobs:
|
||||||
- name: Build output
|
- name: Build output
|
||||||
run: nix build .#${{ matrix.output }} -L
|
run: nix build .#${{ matrix.output }} -L
|
||||||
- name: Push output
|
- name: Push output
|
||||||
uses: ./.github/actions/attic-push
|
run: |
|
||||||
|
nix run .#attic -- login nrab-attic 'https://attic.nrab.lol' ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
nix run .#attic -- push nrab-attic:public result
|
||||||
|
|
||||||
all-built:
|
all-built:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue