ci: utilise new cloudflare pages tf module (#45)

This commit is contained in:
Zack Pollard
2024-11-26 18:55:51 +00:00
committed by GitHub
parent 162d557a71
commit 8b37bd87bc
8 changed files with 89 additions and 54 deletions
+2 -2
View File
@@ -117,7 +117,7 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ fromJson(steps.deploy-frontend-output.outputs.output).pages_project_name.value }}
directory: 'dist/frontend'
branch: ${{ github.event_name == 'pull_request' && format('pr-{0}', github.event.number) || github.ref_name }}
branch: ${{ fromJson(steps.deploy-frontend-output.outputs.output).pages_branch.value }}
wranglerVersion: '3'
- name: Comment
@@ -127,7 +127,7 @@ jobs:
number: ${{ github.event.number }}
body: |
🚀 Preview deployed to:
- Frontend URL: https://${{ fromJson(steps.deploy-frontend-output.outputs.output).immich_app_branch_subdomain.value }}
- Frontend URL: https://${{ fromJson(steps.deploy-frontend-output.outputs.output).immich_subdomain.value }}
- Backend URL: ${{ fromJson(steps.deploy-backend-output.outputs.output).data_api_url.value }}
emojis: 'rocket'
body-include: '<!-- web PR URL -->'