Skip to content

Commit c1f7224

Browse files
authored
add new machine
1 parent 29be59c commit c1f7224

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

.github/workflows/update-gql-data.yml renamed to .github/workflows/update-gql-v1beta-data.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ jobs:
3131
--source-disk=graphql5 \
3232
--source-disk-zone=us-east1-b \
3333
--storage-location=us-east1
34-
- name: 'Update update-graphql-data-prod'
34+
- name: 'Update data'
3535
uses: 'google-github-actions/ssh-compute@v1'
3636
with:
3737
instance_name: 'graphql5'
3838
zone: 'us-east1-b'
3939
ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY }}'
4040
user: ga
41-
command: sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
41+
command: sudo -i sh -c 'cd pokeapi && make update-graphql-v1beta-data-prod'
4242
- name: 'Display update output'
4343
run: |-
4444
echo '${{ steps.compute-ssh.outputs.stdout }}'
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: update-gql-data
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
jobs:
8+
update-gql-data:
9+
runs-on: ubuntu-22.04
10+
concurrency:
11+
group: serial
12+
cancel-in-progress: false
13+
permissions:
14+
contents: 'read'
15+
id-token: 'write'
16+
steps:
17+
- uses: 'actions/checkout@v4'
18+
- uses: 'google-github-actions/auth@v2'
19+
with:
20+
project_id: 'pokeapi-215911'
21+
workload_identity_provider: 'projects/854118331945/locations/global/workloadIdentityPools/github-action-pool/providers/github'
22+
- name: 'Set up Cloud SDK'
23+
uses: 'google-github-actions/setup-gcloud@v2'
24+
with:
25+
version: '>= 390.0.0'
26+
- name: 'Update data'
27+
uses: 'google-github-actions/ssh-compute@v1'
28+
with:
29+
instance_name: 'graphql1'
30+
zone: 'us-east1-b'
31+
ssh_private_key: '${{ secrets.GCP_STAGING_GRAPHQL1_VM_SSH_PRIVATE_KEY }}'
32+
user: ga
33+
command: sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
34+
- name: 'Display update output'
35+
run: |-
36+
echo '${{ steps.compute-ssh.outputs.stdout }}'
37+
echo '${{ steps.compute-ssh.outputs.stderr }}'

0 commit comments

Comments
 (0)