Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): additional pin to scaleway #107

Merged
merged 8 commits into from
Mar 13, 2024
Merged

chore(ci): additional pin to scaleway #107

merged 8 commits into from
Mar 13, 2024

Conversation

lidel
Copy link
Member

@lidel lidel commented Mar 12, 2024

Similar to #105, pins to pl-waw.ipfs.labs.scw.cloud using remote pinning API.

Some thoughts on Scaleway as pinning service

Still, was easy to make it work, is fast, and gives us another copy.
I am going to merge this to increase our ability to dogfood setup with more than two pinning services.

Once merged, we will have three ways of pinning remotely, which is great for dogfooding, and evaluating complexity/maintenance/stability/cost:

  • our self-hosted collab cluster via ipfs-cluster-ctl CLI
  • web3.storage via w3up tool
  • Scaleway via their HTTP endpoint compatible with ipfs pin remote / pinning-services-api-spec

@lidel lidel requested a deployment to Deploy March 12, 2024 23:36 — with GitHub Actions Abandoned
@lidel lidel requested a deployment to Deploy March 12, 2024 23:44 — with GitHub Actions Abandoned
@lidel lidel requested a deployment to Deploy March 13, 2024 00:45 — with GitHub Actions Abandoned
@lidel lidel marked this pull request as ready for review March 13, 2024 01:12
Copy link
Member Author

@lidel lidel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Low risk, so I'm going to merge this.
Some comments inline with hopefully useful info.

Comment on lines +346 to +347
- name: Pin to Scaleway
if: ${{ steps.scaleway.outputs.existing-pin == '' }}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ Skipping on any preexisting pins for the CID before pinning it again to avoid HTTP 409 error due to duplicate pin. It would often happen in main branch when ./dist output does not change (e.g. commits with docs edits).

Comment on lines +23 to +24
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/css/tachyons.min.css" integrity="sha256-MgEf5i1a74lVzhT+1R6mBbWCUeUaxC8sQTaN5GY+CoI=" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/ipfs.css" integrity="sha256-tlU/gvVvLjSbTOfSZyCzuQxY8QcmHPtJJ1oTXilA9gk=" crossorigin="anonymous">
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ I needed to produce new ./dist for testing, so switched to SRI + jsdelivr here.

Comment on lines +4 to +18
<!--

This HTML page initializes IPFS Service Worker Gateway.

The HTTP server behind this HTTP URL does not host this website.
Instead, it sends basic website code along with JavaScript. The JS sets
up a tool called IPFS Service Worker Gateway in the user's browser and
uses JavaScript version of IPFS (https://helia.io/) to get IPFS blocks
from content providers.

CID hash verification and data assembly happens in the browser.

Learn more about it here: https://github.com/ipfs-shipyard/helia-service-worker-gateway

-->
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ℹ️ @2color fysa added this disclaimer for curl/cli devs and users expecting deserialized payload, feel free to adjust in follow-up PR.

.github/workflows/main.yml Outdated Show resolved Hide resolved
@lidel lidel merged commit 220e9cb into main Mar 13, 2024
23 checks passed
@lidel lidel deleted the scaleway-pin branch March 13, 2024 01:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant