a man can dream
This commit is contained in:
parent
6d22222568
commit
ed33e038a7
2 changed files with 15 additions and 15 deletions
28
.github/workflows/ci.yml
vendored
28
.github/workflows/ci.yml
vendored
|
|
@ -28,15 +28,15 @@ jobs:
|
||||||
with:
|
with:
|
||||||
system: ${{ matrix.system }}
|
system: ${{ matrix.system }}
|
||||||
|
|
||||||
- name: Login to tailscale
|
# - name: Login to tailscale
|
||||||
uses: tailscale/github-action@v3.2.3
|
# uses: tailscale/github-action@v3.2.3
|
||||||
with:
|
# with:
|
||||||
oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
# oauth-client-id: ${{ secrets.TS_OAUTH_CLIENT_ID }}
|
||||||
oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
# oauth-secret: ${{ secrets.TS_OAUTH_SECRET }}
|
||||||
hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux'
|
# hostname: ${{ matrix.system == 'x86_64-linux' && 'github-actions-x86-64-linux'
|
||||||
|| matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux'
|
# || matrix.system == 'aarch64-linux' && 'github-actions-aarch64-linux'
|
||||||
|| matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}
|
# || matrix.system == 'x86_64-darwin' && 'github-actions-x86-64-darwin' }}
|
||||||
tags: tag:ci
|
# tags: tag:ci
|
||||||
|
|
||||||
# - name: Install and start Tailscale
|
# - name: Install and start Tailscale
|
||||||
# run: |
|
# run: |
|
||||||
|
|
@ -58,13 +58,13 @@ jobs:
|
||||||
# --advertise-tags="tag:ci" \
|
# --advertise-tags="tag:ci" \
|
||||||
# --accept-routes
|
# --accept-routes
|
||||||
|
|
||||||
- name: Tailscale status
|
# - name: Tailscale status
|
||||||
run: tailscale status || true
|
# run: tailscale status || true
|
||||||
|
|
||||||
- name: Check if Attic endpoint is reachable
|
- name: Check if Attic endpoint is reachable
|
||||||
id: check_attic
|
id: check_attic
|
||||||
run: |
|
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 "Attic endpoint is reachable"
|
||||||
echo "reachable=true" >> $GITHUB_OUTPUT
|
echo "reachable=true" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
|
|
@ -74,13 +74,13 @@ jobs:
|
||||||
|
|
||||||
- name: Curl the cache
|
- name: Curl the cache
|
||||||
run: |
|
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
|
- name: Setup Attic cache
|
||||||
if: steps.check_attic.outputs.reachable == 'true'
|
if: steps.check_attic.outputs.reachable == 'true'
|
||||||
uses: ryanccn/attic-action@v0.3.1
|
uses: ryanccn/attic-action@v0.3.1
|
||||||
with:
|
with:
|
||||||
endpoint: http://wallfacer.curl-boga.ts.net:7080
|
endpoint: https://cache.osbm.dev
|
||||||
cache: main
|
cache: main
|
||||||
token: ${{ secrets.ATTIC_TOKEN }}
|
token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
extra-substituters = [
|
extra-substituters = [
|
||||||
"https://nix-community.cachix.org"
|
"https://nix-community.cachix.org"
|
||||||
"http://wallfacer.curl-boga.ts.net:7080/main"
|
"https://cache.osbm.dev/main"
|
||||||
];
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue