parent
b158f155aa
commit
b9498fefd5
1 changed files with 11 additions and 11 deletions
22
.github/workflows/ci.yml
vendored
22
.github/workflows/ci.yml
vendored
|
|
@ -61,23 +61,23 @@ jobs:
|
||||||
# - 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 https://cache.osbm.dev | 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
|
||||||
# echo "Attic endpoint is not reachable"
|
echo "Attic endpoint is not reachable"
|
||||||
# echo "reachable=false" >> $GITHUB_OUTPUT
|
echo "reachable=false" >> $GITHUB_OUTPUT
|
||||||
# fi
|
fi
|
||||||
|
|
||||||
- name: Curl the cache
|
- name: Curl the cache
|
||||||
run: |
|
run: |
|
||||||
curl --connect-timeout 20 --silent https://cache.osbm.dev/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: https://cache.osbm.dev
|
endpoint: https://cache.osbm.dev
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue