From c1083c45152955a00d26d2b8a0f05d498c7dd0f3 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Fri, 29 Nov 2024 11:06:44 +0100 Subject: [PATCH] ci workflow: Add CAR file directly to cluster Since we already have the CAR, add directly rather than waiting for bitswap upload. --- .github/workflows/ci.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70fd40efc..d0fbc0616 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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