Skip to content

Commit

Permalink
add chaching job to GCP
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev committed May 29, 2024
1 parent 9f8dcaa commit 064ebb6
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .gcp/jobs/cache_hydration-web_stats_job.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
apiVersion: run.googleapis.com/v1
kind: Job
metadata:
name: cache-hydration-web-stats-job
labels:
cloud.googleapis.com/location: europe-west3

spec:
template:
metadata:
annotations:
run.googleapis.com/vpc-access-connector: hydradx-api-connector
spec:
parallelism: 0
template:
spec:
maxRetries: "0"
timeoutSeconds: "300"
containers:
- image: europe-west3-docker.pkg.dev/rich-principle-383410/hydradx-api/hydradx-api-jobs:latest
env:
- name: JOB_NAME
value: cache-hydration-web-stats-job
- name: GOOGLE_CLOUD_RUN_JOB
value: "true"
resources:
limits:
cpu: "1"
memory: 512Mi
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,8 @@ jobs:
- name: deploy cache_hydradx-ui_stats_tvl_job
run: gcloud beta run jobs replace .gcp/jobs/cache_hydradx-ui_stats_tvl_job.yml

- name: deploy cache_hydration-web_stats_job
run: gcloud beta run jobs replace .gcp/jobs/cache_hydration-web_stats_job.yml

- name: deploy api-app
run: gcloud beta run services replace .gcp/hydradx_api_app.yml

0 comments on commit 064ebb6

Please sign in to comment.