chore: improved caching
This commit is contained in:
parent
84c220f80a
commit
ec3efbe474
3 changed files with 14 additions and 0 deletions
|
@ -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'
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
1
justfile
1
justfile
|
@ -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')]
|
||||
|
|
Loading…
Reference in a new issue