Skip to content

Commit e2ae110

Browse files
authored
chore(ci): add CAR file directly to cluster (#2304)
Since we already have the CAR, add directly rather than waiting for bitswap upload.
1 parent 89c094b commit e2ae110

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -124,26 +124,16 @@ jobs:
124124
if: github.ref == 'refs/heads/main'
125125
continue-on-error: true
126126
run: |
127-
ipfs-cluster-ctl --enc=json \
128-
--host "${CLUSTER_HOST}" \
129-
--basic-auth "$CLUSTER_USER:$CLUSTER_PASSWORD" \
130-
peers ls > cluster-peers-ls
131-
for maddr in $(jq -r '.ipfs.addresses[]?' cluster-peers-ls); do
132-
ipfs swarm peering add "$maddr" &
133-
ipfs swarm connect "$maddr" &
134-
done
135127
ipfs-cluster-ctl --enc=json \
136128
--host "${CLUSTER_HOST}" \
137129
--basic-auth "${CLUSTER_USER}:${CLUSTER_PASSWORD}" \
138-
pin add \
130+
add --format car --local \
139131
--name "${PIN_NAME}" \
140-
--wait \
141-
$PIN_CID
132+
ipfs-webui_${{ github.sha }}.car
142133
env:
143134
CLUSTER_HOST: "/dnsaddr/ipfs-websites.collab.ipfscluster.io"
144135
CLUSTER_USER: ${{ secrets.CLUSTER_USER }}
145136
CLUSTER_PASSWORD: ${{ secrets.CLUSTER_PASSWORD }}
146-
PIN_CID: ${{ steps.ipfs.outputs.cid }}
147137
PIN_NAME: "ipfs-webui@${{ github.sha }}"
148138

149139
- name: Fail job due to pinning failure

0 commit comments

Comments
 (0)