Skip to content

Did the action support R2 of cloudflare ? if so how to setup the credentials ? #1294

Answered by blatr
eggcaker asked this question in Q&A
Discussion options

You must be logged in to vote

@eggcaker I also haven’t figured out how to configure this action for R2, but you can simply use the AWS CLI with R2 by utilizing environment variables to set your access key and secret key directly i.e.

name: test r2 download

on:
  push:
    branches: [ master ]

env:
  AWS_ACCESS_KEY_ID: ${{ secrets.R2_ACCESS_KEY_ID }}
  AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_ACCESS_KEY }}
  AWS_DEFAULT_REGION: auto

  build-and-push-artifacts:
    runs-on: ubuntu-latest

    steps:
     ...
     - name: Download Files from R2
        env:
          # Construct the R2 endpoint URL
          R2_ENDPOINT_URL: https://${{ secrets.R2_ACCOUNT_ID }}.r2.cloudflarestorage.com
          R2_BUCKET_NAME: te…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@blatr
Comment options

Answer selected by eggcaker
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants