Skip to content

Commit

Permalink
chore(ci): add CAR file directly to cluster (#2304)
Browse files Browse the repository at this point in the history
Since we already have the CAR, add directly rather than waiting for bitswap upload.
  • Loading branch information
hsanjuan authored Nov 29, 2024
1 parent 89c094b commit e2ae110
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,26 +124,16 @@ jobs:
if: github.ref == 'refs/heads/main'
continue-on-error: true
run: |
ipfs-cluster-ctl --enc=json \
--host "${CLUSTER_HOST}" \
--basic-auth "$CLUSTER_USER:$CLUSTER_PASSWORD" \
peers ls > cluster-peers-ls
for maddr in $(jq -r '.ipfs.addresses[]?' cluster-peers-ls); do
ipfs swarm peering add "$maddr" &
ipfs swarm connect "$maddr" &
done
ipfs-cluster-ctl --enc=json \
--host "${CLUSTER_HOST}" \
--basic-auth "${CLUSTER_USER}:${CLUSTER_PASSWORD}" \
pin add \
add --format car --local \
--name "${PIN_NAME}" \
--wait \
$PIN_CID
ipfs-webui_${{ github.sha }}.car
env:
CLUSTER_HOST: "/dnsaddr/ipfs-websites.collab.ipfscluster.io"
CLUSTER_USER: ${{ secrets.CLUSTER_USER }}
CLUSTER_PASSWORD: ${{ secrets.CLUSTER_PASSWORD }}
PIN_CID: ${{ steps.ipfs.outputs.cid }}
PIN_NAME: "ipfs-webui@${{ github.sha }}"

- name: Fail job due to pinning failure
Expand Down

0 comments on commit e2ae110

Please sign in to comment.