1
0
Fork 0

chore: improved caching
All checks were successful
Build / build-amd64-linux (push) Successful in 31s
Build / build-arm64-linux (push) Successful in 1m13s

This commit is contained in:
Daniel Kempkens 2024-11-12 00:05:14 +01:00
parent 84c220f80a
commit ec3efbe474
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
3 changed files with 14 additions and 0 deletions

View file

@ -27,6 +27,10 @@ jobs:
run: |
nix build '.#nixosConfigurations.tanker.pkgs.attic-client'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
- name: Build deploy-rs
run: |
nix build '.#deploy-rs'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
- name: Build nginx
run: |
nix build '.#nixosConfigurations.tanker.config.services.nginx.package'
@ -49,6 +53,10 @@ jobs:
run: |
nix build '.#nixosConfigurations.argon.pkgs.attic-client'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
- name: Build deploy-rs
run: |
nix build '.#deploy-rs'
attic push ${{ secrets.ATTIC_CACHE }} $(nix-store -qR --include-outputs $(nix-store -qd ./result) | grep -v '\.drv$')
- name: Build nginx
run: |
nix build '.#nixosConfigurations.argon.config.services.nginx.package'

View file

@ -208,6 +208,11 @@
TREEFMT_CONFIG_FILE = config.treefmt.build.configFile;
REMOTE_REPO_TYPE = "forgejo";
};
# Used for caching (in CI) only
packages = {
deploy-rs = inputs'.deploy-rs.packages.default;
};
};
};
}

View file

@ -26,6 +26,7 @@ deploy-local-machine target type=defaultLocalType: _git-pull (build-local-machin
env TERM=xterm-256color {{type}}-rebuild switch --flake ".#{{target}}"
sync
attic push nifoc-systems /run/current-system
find ./.direnv -maxdepth 1 -name 'flake-profile-*' -type l -exec attic push nifoc-systems {} \;
# Deploy to a remote machine
[group('deploy')]