Skip to content

Commit b05b099

Browse files
committed
Second pass
1 parent 2a78995 commit b05b099

File tree

1 file changed

+18
-20
lines changed

1 file changed

+18
-20
lines changed

README.md

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,26 +53,24 @@ If you'd like to sign your images using Cosign:
5353

5454
### Set up Cloudflare R2 for ISO storage
5555

56-
By default, the CI will upload built ISO images as Github Artifacts. These ISOs
57-
can get quite big and Artifact storage is limited, so you may want to upload the
58-
ISOs somewhere else, like the free tier of Cloudflare R2.
59-
60-
Follow these instructions to set that up:
61-
62-
1. Sign up to the free tier of [Cloudflare R2](https://www.cloudflare.com/developer-platform/products/r2/)
63-
2. Create a new bucket, with whatever name you want. Set the location to whatever you want. The free tier
64-
only gives you access to the Standard storage class, so leave that selected.
65-
3. Now that you have a bucket, you need credentials to access it. Click on the API selection button, and
66-
then on "Manage API tokens". In the next screen, click the "Create Account API token" button. Select
67-
"Object Read & Write" permissions, and apply it only to the specific bucket you just created, and then
68-
click on the "Create Account API Token" button. Note down the credentials displayed in the next screen.
69-
4. In Github, add the following new repository secrets:
70-
- `R2_ACCOUNT_ID`: your cloudflare account ID (you can find it in the URL of the Cloudflare dashboard: `https://dash.cloudflare.com/<R2_ACCOUNT_ID>/home`)
71-
- `R2_ACCESS_KEY_ID`: Access Key ID for your API token
72-
- `R2_SECRET_ACCESS_KEY`: Secret Access Key for your API token
73-
- `R2_BUCKET`: your bucket name
74-
5. In the `build-iso` job of [`build-iso.yml`](/.github/workflows/build-iso.yml), uncomment the secret
75-
definitions for the secrets you just defined and change `upload-to-cloudflare` to `true`.
56+
By default, the CI uploads built ISO images as GitHub Artifacts. These can be large, and artifact storage is limited, so you may want to upload ISOs to Cloudflare R2 (free tier).
57+
58+
Follow these steps:
59+
60+
1. **Sign up for [Cloudflare R2](https://www.cloudflare.com/developer-platform/products/r2/)** and create a new bucket. Use any name and location; the free tier only supports the Standard storage class.
61+
2. **Create an API token** with "Object Read & Write" permissions, limited to your new bucket. Save the Access Key ID and Secret Access Key.
62+
3. **Add the following repository secrets in GitHub:**
63+
- `R2_ACCOUNT_ID`: Your Cloudflare account ID (found in the dashboard URL: `https://dash.cloudflare.com/<R2_ACCOUNT_ID>/home`)
64+
- `R2_ACCESS_KEY_ID`: The Access Key ID from your API token
65+
- `R2_SECRET_ACCESS_KEY`: The Secret Access Key from your API token
66+
- `R2_BUCKET`: Your bucket name
67+
4. **Update your workflow:**
68+
In the `build-iso` job of [`build-iso.yml`](/.github/workflows/build-iso.yml), uncomment the secret definitions for these secrets and set `upload-to-cloudflare: true` in the workflow inputs:
69+
```yaml
70+
upload-to-cloudflare: true
71+
```
72+
5. **Enable public access (optional):**
73+
In the Cloudflare dashboard, select your R2 bucket and enable the "Public Development URL" if you want to share ISOs publicly. This gives you a URL prefix for downloads.
7674
7775
## Customizing your respin
7876

0 commit comments

Comments
 (0)