-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.05 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Deploy Production
on:
workflow_dispatch:
inputs:
number:
description: "Enter a Rollout Version"
required: true
default: "1.0.0"
jobs:
deploy_production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-gcloud
with:
credentials_json: ${{ secrets.CREDENTIALS_JSON }}
- name: Rollout Version
uses: google-github-actions/deploy-cloudrun@v1
with:
service: cut0-blog
region: asia-northeast1
image: "asia-northeast1-docker.pkg.dev/cut0-blog/cut0-blog-images/cut0-blog:${{ github.event.inputs.number }}"
purge_firebase_hosting:
needs:
- deploy_production
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: "${{ secrets.GITHUB_TOKEN }}"
firebaseServiceAccount: "${{ secrets.FIREBASE_SERVICE_ACCOUNT_CUT0_BLOG }}"
channelId: live
projectId: cut0-blog