π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Narrow web deploy Cloudflare secrets
Manav Rathi0e1c2596a7ed
diff --git a/.github/actions/deploy-web-app/action.yml b/.github/actions/deploy-web-app/action.ymlindex 7a134d451a..9276fe7ef0 100644--- a/.github/actions/deploy-web-app/action.yml+++ b/.github/actions/deploy-web-app/action.yml@@ -8,6 +8,12 @@ inputs:output:description: "Build output directory within web/apps/<app>"default: "out"+ account-id:+ description: "Cloudflare account ID"+ required: true+ api-token:+ description: "Cloudflare API token"+ required: trueruns:using: "composite"@@ -20,6 +26,6 @@ runs:- name: Publish ${{ inputs.app }}uses: cloudflare/wrangler-action@v3with:- accountId: ${{ env.CLOUDFLARE_ACCOUNT_ID }}- apiToken: ${{ env.CLOUDFLARE_API_TOKEN }}+ accountId: ${{ inputs.account-id }}+ apiToken: ${{ inputs.api-token }}command: pages deploy --project-name=ente --commit-dirty=true --branch=deploy/${{ inputs.app }} web/apps/${{ inputs.app }}/${{ inputs.output }}diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.ymlindex 160764c9bb..31c6e886ca 100644--- a/.github/workflows/web-deploy.yml+++ b/.github/workflows/web-deploy.yml@@ -31,10 +31,6 @@ jobs:run:working-directory: web- env:- CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}- CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}-steps:- name: Checkoutuses: actions/checkout@v6@@ -66,64 +62,90 @@ jobs:uses: ./.github/actions/deploy-web-appwith:app: photos+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy albumsuses: ./.github/actions/deploy-web-appwith:app: albums+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy accountsuses: ./.github/actions/deploy-web-appwith:app: accounts+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy authuses: ./.github/actions/deploy-web-appwith:app: auth+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy legacyuses: ./.github/actions/deploy-web-appwith:app: legacy+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy castuses: ./.github/actions/deploy-web-appwith:app: cast+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy paymentsuses: ./.github/actions/deploy-web-appwith:app: payments+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}output: dist- name: Deploy lockeruses: ./.github/actions/deploy-web-appwith:app: locker+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy shareuses: ./.github/actions/deploy-web-appwith:app: share+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy memoriesuses: ./.github/actions/deploy-web-appwith:app: memories+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy pasteuses: ./.github/actions/deploy-web-appwith:app: paste+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy embeduses: ./.github/actions/deploy-web-appwith:app: embed+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}- name: Deploy ensuuses: ./.github/actions/deploy-web-appwith:app: ensu+ account-id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}+ api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}