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

ci: pin firebase channels #9787

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/cleanup-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,26 @@ jobs:
gh cache delete $cacheId
done
delete-firebase-channel:
delete-firebase-channels:
runs-on: ubuntu-latest
timeout-minutes: 10
env:
channel: pr${{ github.event.number }}-${{ github.head_ref }}
steps:
- uses: actions/[email protected]
- uses: w9jds/[email protected]
- name: Drop e2e report site
uses: w9jds/[email protected]
continue-on-error: true
with:
args: hosting:channel:delete ${{ env.channel }}-e2e --site taiga-previews-demo-e2e-report -f
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }}
PROJECT_ID: taiga-previews
- name: Drop preview demo site
uses: w9jds/[email protected]
continue-on-error: true
with:
args: hosting:channel:delete pr${{ github.event.number }}-${{ github.head_ref }} --force
args: hosting:channel:delete ${{ env.channel }}-demo --site taiga-previews-demo -f
env:
GCP_SA_KEY: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }}
PROJECT_ID: taiga-previews
3 changes: 2 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
uses: FirebaseExtended/action-hosting-deploy@v0
if: env.IS_OWNER_MODE == 'true'
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
channelId: pr${{ github.event.number }}-${{ github.head_ref }}-demo
firebaseServiceAccount: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }}
repoToken: ${{ secrets.GITHUB_TOKEN }}
projectId: taiga-previews
target: taiga-previews-demo
expires: 1d
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,9 @@ jobs:
if: env.IS_OWNER_MODE == 'true'
continue-on-error: true
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
channelId: pr${{ github.event.number }}-${{ github.head_ref }}-e2e
firebaseServiceAccount: ${{ secrets.FIREBASE_TAIGA_PREVIEWS_SA }}
repoToken: ${{ secrets.GITHUB_TOKEN }}
projectId: taiga-previews
expires: 1d
target: taiga-previews-demo-e2e-report
Expand Down
Loading