push to nix cache
Some checks failed
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 34s
Example / Example (push) Failing after 2m13s

This commit is contained in:
Zuckerberg 2023-10-01 19:15:47 -06:00
parent fc5b3f0c24
commit d2becac865

View File

@ -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
- 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/*