From 05d545d7a69dab0681448b152ee86755fa774a02 Mon Sep 17 00:00:00 2001 From: Sin Ser'hao Date: Fri, 9 Jan 2026 11:24:41 +0100 Subject: [PATCH] pass privkey as env --- .gitea/workflows/deploy.yaml | 14 ++++++++------ test | 1 + 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 test diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 2201879..b667573 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -10,14 +10,16 @@ jobs: id-token: write name: build hive configuration runs-on: ubuntu-22.04 + env: + - CACHE_PRIVKEY: ${{secrets.CACHE_PRIVKEY}} steps: - uses: actions/checkout@v4 - - run: mkdir -p /var/secrets/ - - run: echo ${{ secrets.CACHE_PRIVKEY }} > /var/secrets/cache_privkey - - run: cat /var/secrets/cache_privkey - - run: mkdir -p /etc/nix - - run: cp ./scripts/upload-to-cache.sh /etc/nix/ - - run: chmod +x /etc/nix/upload-to-cache.sh + - run: | + mkdir -p /var/secrets/ + echo "$CACHE_PRIVKEY" >> /var/secrets/cache_privkey + mkdir -p /etc/nix + cp ./scripts/upload-to-cache.sh /etc/nix/ + chmod +x /etc/nix/upload-to-cache.sh - uses: cachix/install-nix-action@v31 with: extra_nix_config: | diff --git a/test b/test new file mode 100644 index 0000000..9daeafb --- /dev/null +++ b/test @@ -0,0 +1 @@ +test