From ed33e038a72bbec33cadd171f2da897e77799860 Mon Sep 17 00:00:00 2001 From: osbm Date: Wed, 17 Sep 2025 13:45:11 +0300 Subject: [PATCH] a man can dream --- .github/workflows/ci.yml | 28 ++++++++++++++-------------- flake.nix | 2 +- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index edcb5ab..774cdd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,15 +28,15 @@ jobs: with: system: ${{ matrix.system }} - - name: Login to tailscale - uses: tailscale/github-action@v3.2.3 - with: - oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} - oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} - hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' - || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' - || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} - tags: tag:ci + # - name: Login to tailscale + # uses: tailscale/github-action@v3.2.3 + # with: + # oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }} + # oauth-secret: ${{ secrets.TS_OAUTH_SECRET }} + # hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux' + # || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux' + # || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }} + # tags: tag:ci # - name: Install and start Tailscale # run: | @@ -58,13 +58,13 @@ jobs: # --advertise-tags="tag:ci" \ # --accept-routes - - name: Tailscale status - run: tailscale status || true + # - name: Tailscale status + # run: tailscale status || true - name: Check if Attic endpoint is reachable id: check_attic run: | - if curl --connect-timeout 20 --silent --head http://wallfacer.curl-boga.ts.net:7080 | grep "200 OK"; then + if curl --connect-timeout 20 --silent --head https://cache.osbm.dev | grep "200 OK"; then echo "Attic endpoint is reachable" echo "reachable=true" >> $GITHUB_OUTPUT else @@ -74,13 +74,13 @@ jobs: - name: Curl the cache run: | - curl --connect-timeout 20 --silent http://wallfacer.curl-boga.ts.net:7080/main/nix-cache-info || echo "Cache endpoint not reachable" + curl --connect-timeout 20 --silent https://cache.osbm.dev/main/nix-cache-info || echo "Cache endpoint not reachable" - name: Setup Attic cache if: steps.check_attic.outputs.reachable == 'true' uses: ryanccn/attic-action@v0.3.1 with: - endpoint: http://wallfacer.curl-boga.ts.net:7080 + endpoint: https://cache.osbm.dev cache: main token: ${{ secrets.ATTIC_TOKEN }} diff --git a/flake.nix b/flake.nix index 03dac0a..cf3b069 100644 --- a/flake.nix +++ b/flake.nix @@ -4,7 +4,7 @@ nixConfig = { extra-substituters = [ "https://nix-community.cachix.org" - "http://wallfacer.curl-boga.ts.net:7080/main" + "https://cache.osbm.dev/main" ]; extra-trusted-public-keys = [ "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="