push to nix cache
This commit is contained in:
parent
fc5b3f0c24
commit
d2becac865
@ -19,9 +19,6 @@ jobs:
|
||||
trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= s0.koi-bebop.ts.net:OjbzD86YjyJZpCp9RWaQKANaflcpKhtzBMNP8I2aPUU=
|
||||
substituters = https://cache.nixos.org/ http://s0.koi-bebop.ts.net:5000
|
||||
|
||||
- name: Install dependencies
|
||||
run: nix profile install nixpkgs#nodejs-18_x
|
||||
|
||||
- name: Checkout the repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
@ -32,10 +29,20 @@ jobs:
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
|
||||
- run: nix run nixpkgs#cowsay -- hello
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
nix profile install nixpkgs#cowsay
|
||||
nix profile install nixpkgs#curl
|
||||
|
||||
- run: nix profile install nixpkgs#cowsay
|
||||
- run: cowsay testing
|
||||
|
||||
- run: nix profile install nixpkgs#curl
|
||||
- run: curl -I s0.koi-bebop.ts.net
|
||||
|
||||
- name: Setup SSH Key
|
||||
run: |
|
||||
echo "${{ secrets.BINARY_CACHE_PUSH_SSH_KEY }}" > id_ed25519
|
||||
chmod 600 id_ed25519
|
||||
ssh-add id_ed25519
|
||||
|
||||
- name: Copy all built derivations to remote cache
|
||||
run: nix copy --to ssh://cache-push@s0.koi-bebop.ts.net /nix/store/*
|
Loading…
x
Reference in New Issue
Block a user