From faa171efedcc56102f7f046c8a223a8c806a7ffc Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 28 Apr 2024 10:52:30 +0200 Subject: [PATCH] Push images immediately after building --- .forgejo/workflows/cache.yaml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.forgejo/workflows/cache.yaml b/.forgejo/workflows/cache.yaml index 09c872a..91b4e1a 100644 --- a/.forgejo/workflows/cache.yaml +++ b/.forgejo/workflows/cache.yaml @@ -11,13 +11,15 @@ jobs: run: | /bin/attic login local https://attic.kun.is ${{ secrets.ATTIC_TOKEN }} /bin/attic use home - - name: Build Nix derivations - run: | - nix build --extra-experimental-features nix-command --extra-experimental-features flakes --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim - nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action - nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link atticd ./checkout#packages.x86_64-linux.atticd - - name: Push Nix derivations to cache - run: | - /bin/attic push home blog-pim - /bin/attic push home forgejo-nix-action - /bin/attic push home atticd + - name: Build Pim's blog + run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --out-link blog-pim ./checkout#packages.x86_64-linux.blog-pim + - name: Push Pim's blog to Nix cache + run: /bin/attic push home blog-pim + - name: Build forgejo-nix-action + run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link forgejo-nix-action ./checkout#packages.x86_64-linux.forgejo-nix-action + - name: Push forgjeo-nix-action to Nix cache + run: /bin/attic push home forgejo-nix-action + - name: Build Atticd + run: nix build --extra-experimental-features nix-command --extra-experimental-features flakes --no-allow-dirty --out-link atticd ./checkout#packages.x86_64-linux.atticd + - name: Push atticd to Nix cache + run: /bin/attic push home atticd