attic setup done
This commit is contained in:
parent
fdcfe609b2
commit
fe8c258d8f
17
.github/workflows/weekly-build-cache.yml
vendored
17
.github/workflows/weekly-build-cache.yml
vendored
@ -39,7 +39,7 @@ jobs:
|
|||||||
if: steps.check_changes.outputs.changes == 'true'
|
if: steps.check_changes.outputs.changes == 'true'
|
||||||
run: |
|
run: |
|
||||||
# Configure attic client to use your cache server
|
# Configure attic client to use your cache server
|
||||||
attic login jawz-cache https://cache.servidos.lat ${{ secrets.ATTIC_TOKEN }}
|
attic login servidos https://cache.servidos.lat ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
|
||||||
- name: Build workstation configuration
|
- name: Build workstation configuration
|
||||||
if: steps.check_changes.outputs.changes == 'true'
|
if: steps.check_changes.outputs.changes == 'true'
|
||||||
@ -47,12 +47,6 @@ jobs:
|
|||||||
echo "Building workstation configuration..."
|
echo "Building workstation configuration..."
|
||||||
nix build .#nixosConfigurations.workstation.config.system.build.toplevel --print-build-logs
|
nix build .#nixosConfigurations.workstation.config.system.build.toplevel --print-build-logs
|
||||||
|
|
||||||
- name: Build miniserver configuration
|
|
||||||
if: steps.check_changes.outputs.changes == 'true'
|
|
||||||
run: |
|
|
||||||
echo "Building miniserver configuration..."
|
|
||||||
nix build .#nixosConfigurations.miniserver.config.system.build.toplevel --print-build-logs
|
|
||||||
|
|
||||||
- name: Build server configuration
|
- name: Build server configuration
|
||||||
if: steps.check_changes.outputs.changes == 'true'
|
if: steps.check_changes.outputs.changes == 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -65,13 +59,12 @@ jobs:
|
|||||||
echo "Pushing builds to cache..."
|
echo "Pushing builds to cache..."
|
||||||
# Push all built derivations to cache
|
# Push all built derivations to cache
|
||||||
if ls result* 1> /dev/null 2>&1; then
|
if ls result* 1> /dev/null 2>&1; then
|
||||||
attic push jawz-cache result*
|
attic push servidos:nixos result*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Push the specific system derivations we just built
|
# Push the specific system derivations we just built
|
||||||
nix build .#nixosConfigurations.workstation.config.system.build.toplevel --print-out-paths | attic push jawz-cache --stdin
|
nix build .#nixosConfigurations.workstation.config.system.build.toplevel --print-out-paths | attic push servidos:nixos --stdin
|
||||||
nix build .#nixosConfigurations.miniserver.config.system.build.toplevel --print-out-paths | attic push jawz-cache --stdin
|
nix build .#nixosConfigurations.server.config.system.build.toplevel --print-out-paths | attic push servidos:nixos --stdin
|
||||||
nix build .#nixosConfigurations.server.config.system.build.toplevel --print-out-paths | attic push jawz-cache --stdin
|
|
||||||
|
|
||||||
- name: Commit updated flake.lock
|
- name: Commit updated flake.lock
|
||||||
if: steps.check_changes.outputs.changes == 'true'
|
if: steps.check_changes.outputs.changes == 'true'
|
||||||
@ -92,7 +85,7 @@ jobs:
|
|||||||
if [[ "${{ steps.check_changes.outputs.changes }}" == "true" ]]; then
|
if [[ "${{ steps.check_changes.outputs.changes }}" == "true" ]]; then
|
||||||
echo "✅ Weekly build completed successfully!"
|
echo "✅ Weekly build completed successfully!"
|
||||||
echo "- Updated flake.lock"
|
echo "- Updated flake.lock"
|
||||||
echo "- Built all NixOS configurations"
|
echo "- Built workstation and server configurations"
|
||||||
echo "- Pushed builds to Atticd cache"
|
echo "- Pushed builds to Atticd cache"
|
||||||
echo "- Committed changes and created release tag"
|
echo "- Committed changes and created release tag"
|
||||||
else
|
else
|
||||||
|
|||||||
@ -104,8 +104,7 @@
|
|||||||
"https://cosmic.cachix.org"
|
"https://cosmic.cachix.org"
|
||||||
];
|
];
|
||||||
trusted-public-keys = [
|
trusted-public-keys = [
|
||||||
# TODO: Replace with actual atticd public key after setup
|
"nixos:kubuWhYCk9/aZp5GDJFAScYgigM66DszP8i1Pzbq0Fc="
|
||||||
# "cache.servidos.lat:YOUR_ATTICD_PUBLIC_KEY_HERE"
|
|
||||||
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
||||||
"nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU="
|
"nixpkgs-python.cachix.org-1:hxjI7pFxTyuTHn2NkvWCrAUcNZLNS3ZAvfYNuYifcEU="
|
||||||
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
"devenv.cachix.org-1:w1cLUi8dv3hnoSPGAuibQv+f9TZLr6cv/Hm9XgU50cw="
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user