Skip to content

Commit

Permalink
fixup! use magic-nix-cache-action
Browse files Browse the repository at this point in the history
  • Loading branch information
steveej committed Sep 5, 2024
1 parent 05fce12 commit 84d647f
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build-hds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,24 +42,27 @@ jobs:
with:
path: "hds-releases"

- name: Configure nix with github credentials
run: |
set -eou pipefail
mkdir -p /etc/nix/
cat > /etc/nix/netrc <<EOF
machine github.com
password ${{ secrets.GITHUB_TOKEN }}
machine api.github.com
password ${{ secrets.GITHUB_TOKEN }}
EOF
- uses: DeterminateSystems/nix-installer-action@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
extra-conf: |
netrc-file = /etc/nix/netrc
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
# trusted-public-keys = cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY= cache.holo.host-1:lNXIXtJgS9Iuw4Cu6X0HINLu9sTfcjEntnrgwMQIMcE= cache.holo.host-2:ZJCkX3AUYZ8soxTLfTb60g+F3MkWD7hkH9y8CgqwhDQ=
# substituters = https://cache.holo.host https://cache.nixos.org/
- uses: DeterminateSystems/magic-nix-cache-action@main

- name: Configure nix with github credentials
run: |
set -eou pipefail
mkdir -p ~/.config/nix
cat > ~/.config/nix/netrc <<EOF
machine github.com
password ${{ secrets.GITHUB_TOKEN }}
EOF
- name: "download holo-nixpkgs tag"
run: |
set -eou pipefail
Expand Down

0 comments on commit 84d647f

Please sign in to comment.