Skip to content

Commit

Permalink
cicd: enable update
Browse files Browse the repository at this point in the history
  • Loading branch information
Naramsim committed Jan 9, 2024
1 parent d721b00 commit 3831002
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/update-gql-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ jobs:
- name: 'Make snapshot'
run: |
gcloud compute snapshots create gql-1 \
--labels=trigger=gql-data-update \
--labels=trigger=gql-data-update,next-head-ref=${{ github.head_ref }} \
--snapshot-type=ARCHIVE \
--source-disk=graphql5 \
--source-disk-zone=us-east1-b \
--storage-location=us-east1
# - uses: 'google-github-actions/ssh-compute@v1'
# with:
# instance_name: 'graphql5'
# zone: 'us-east1-b'
# ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY }}'
# user: ga
# command: sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'
- uses: 'google-github-actions/ssh-compute@v1'
with:
instance_name: 'graphql5'
zone: 'us-east1-b'
ssh_private_key: '${{ secrets.GCP_SSH_PRIVATE_KEY }}'
user: ga
command: sudo -i sh -c 'cd pokeapi && make update-graphql-data-prod'

0 comments on commit 3831002

Please sign in to comment.