generated from cybozu-go/neco-template
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.05 KB
/
update-image.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
name: Update vmx-enabled Image (weekly)
on:
workflow_dispatch:
schedule:
- cron: '0 15 * * 0'
jobs:
update-neco-dev:
name: Update neco-dev project
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.NECO_DEV_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v1
- run: make setup build-necogcp
- run: ./build/necogcp neco-test create-image --project-id neco-dev
update-neco-test:
name: Update neco-test project
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: "1.21"
- uses: google-github-actions/auth@v1
with:
credentials_json: ${{ secrets.NECO_TEST_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v1
- run: make setup build-necogcp
- run: ./build/necogcp neco-test create-image