From 4495da07ba96cc64fbb9c7de7b16012eb9a5d1e1 Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Fri, 11 Jul 2025 18:20:02 +0200 Subject: [PATCH] use cache for all steps --- .forgejo/workflows/cache.yaml | 3 ++- .forgejo/workflows/cd.yaml | 1 + .forgejo/workflows/ci.yaml | 5 +++++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/cache.yaml b/.forgejo/workflows/cache.yaml index f729da3a..a3d2fa66 100644 --- a/.forgejo/workflows/cache.yaml +++ b/.forgejo/workflows/cache.yaml @@ -12,6 +12,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 ${{ secrets.ATTIC_PUSH_KEY }} && attic use demo - name: Set up SSH key to access age secrets run: | @@ -21,4 +22,4 @@ jobs: chmod 600 ~/.ssh/id_ed25519 - name: Deploy - - run: attic login fediversity http://attic.fediversity.net:8080 ${{ secrets.ATTIC_PUSH_KEY }} && attic use demo && attic push demo $(nix-build) + - run: attic push demo $(nix-build) diff --git a/.forgejo/workflows/cd.yaml b/.forgejo/workflows/cd.yaml index 4112ee03..0cadb2d3 100644 --- a/.forgejo/workflows/cd.yaml +++ b/.forgejo/workflows/cd.yaml @@ -12,6 +12,7 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 && attic use demo - name: Set up SSH key for age secrets and SSH run: | diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml index 7d1e1041..374a7fbf 100644 --- a/.forgejo/workflows/ci.yaml +++ b/.forgejo/workflows/ci.yaml @@ -19,6 +19,7 @@ jobs: runs-on: nix steps: - uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 && attic use demo - run: nix-shell --run 'nix-unit ./deployment/data-model-test.nix' check-mastodon: @@ -37,22 +38,26 @@ jobs: runs-on: nix steps: - uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 && attic use demo - run: nix-build -A tests.panel check-deployment-basic: runs-on: nix steps: - uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 && attic use demo - run: nix build .#checks.x86_64-linux.deployment-basic -L check-deployment-cli: runs-on: nix steps: - uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 && attic use demo - run: nix build .#checks.x86_64-linux.deployment-cli -L check-deployment-panel: runs-on: nix steps: - uses: actions/checkout@v4 + - run: attic login fediversity http://attic.fediversity.net:8080 && attic use demo - run: nix build .#checks.x86_64-linux.deployment-panel -L