generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (36 loc) · 1.3 KB
/
update-functions.yaml
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
37
38
39
40
41
name: Update Google Cloud Functions (daily)
on:
workflow_dispatch:
schedule:
- cron: '0 15 * * *'
jobs:
update-neco-dev:
name: Update neco-dev project
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.NECO_DEV_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v1
- run: make -f Makefile.dctest delete-function
continue-on-error: true
- run: make -f Makefile.dctest deploy-function
- run: make -f Makefile.slack delete-function
continue-on-error: true
- run: make -f Makefile.slack deploy-function
update-neco-test:
name: Update neco-test project
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.NECO_TEST_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v1
- run: make -f Makefile.instancedel delete-extend-function
continue-on-error: true
- run: make -f Makefile.instancedel delete-shutdown-function
continue-on-error: true
- run: make -f Makefile.instancedel deploy-extend-function
- run: make -f Makefile.instancedel deploy-shutdown-function