Skip to content

Commit

Permalink
feat ✨: attic
Browse files Browse the repository at this point in the history
Signed-off-by: Victor Hang <[email protected]>
  • Loading branch information
Banh-Canh committed Dec 8, 2024
1 parent 36f5476 commit f8104e4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/build-frieren.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
with:
nix_path: nixpkgs=${{ env.url }}
- uses: cachix/cachix-action@v15
with:
name: didactiklabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Create /etc/nixos and copy hardware config
run: |
sudo mkdir -p /etc/nixos
Expand All @@ -45,8 +41,20 @@ jobs:
};
}
EOF'
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up cache
uses: zombiezen/[email protected]
with:
substituters: https://attic.didactiklabs.io/didactiklabs
trusted_public_keys: didactiklabs:djXdtItTlj9rvE5Jsqv1oURQWICivrOAC8E3C9FE1C8=
- name: Build
run: nix-build '<nixpkgs/nixos>' -A config.system.build.toplevel -I nixos-config=profiles/frieren/configuration.nix
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- name: Push
run: |
cachix push didactiklabs ./result
attic push didactiklabs ./result
18 changes: 13 additions & 5 deletions .github/workflows/build-gojo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ jobs:
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
with:
nix_path: nixpkgs=${{ env.url }}
- uses: cachix/cachix-action@v15
with:
name: didactiklabs
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- name: Create /etc/nixos and copy hardware config
run: |
sudo mkdir -p /etc/nixos
Expand All @@ -45,8 +41,20 @@ jobs:
};
}
EOF'
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Set up cache
uses: zombiezen/[email protected]
with:
substituters: https://attic.didactiklabs.io/didactiklabs
trusted_public_keys: didactiklabs:djXdtItTlj9rvE5Jsqv1oURQWICivrOAC8E3C9FE1C8=
- name: Build
run: nix-build '<nixpkgs/nixos>' -A config.system.build.toplevel -I nixos-config=profiles/gojo/configuration.nix
- name: Setup Attic cache
uses: ryanccn/attic-action@v0
with:
endpoint: ${{ secrets.ATTIC_ENDPOINT }}
cache: ${{ secrets.ATTIC_CACHE }}
token: ${{ secrets.ATTIC_TOKEN }}
- name: Push
run: |
cachix push didactiklabs ./result
attic push didactiklabs ./result

0 comments on commit f8104e4

Please sign in to comment.