Skip to content

Commit

Permalink
ci: pin firebase channels (#9787)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Nov 20, 2024
1 parent b6d9f89 commit 5af2001
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
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

0 comments on commit 5af2001

Please sign in to comment.