Skip to content

Commit

Permalink
fixup! [R] Add BigQuery table import to Makefile and rename post_depl…
Browse files Browse the repository at this point in the history
…oy script
  • Loading branch information
nadove-ucsc committed Jul 31, 2024
1 parent 731680c commit aae4509
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,16 @@ deploy:
paths:
- terraform/plan.json

import:
extends: .base_on_push
stage: deploy
timeout: 5m # probably needs to be extended
needs:
- build_image
- deploy
script:
- make import

deploy_browser:
extends: .base_on_push
stage: deploy
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,16 @@ $(1)terraform: lambdas

.PHONY: $(1)deploy
$(1)deploy: check_python $(1)terraform
python $(project_root)/scripts/reindex.py --import --sources "tdr:${GOOGLE_PROJECT}:snapshot/*"
python $(project_root)/scripts/verify_tdr_sources.py
endef

$(eval $(call deploy,))
$(eval $(call deploy,auto_))

.PHONY: import
import: check_python
python $(project_root)/scripts/reindex.py --import --sources "tdr:${GOOGLE_PROJECT}:snapshot/*"
python $(project_root)/scripts/verify_tdr_sources.py

.PHONY: destroy
destroy:
$(MAKE) -C terraform destroy
Expand Down

0 comments on commit aae4509

Please sign in to comment.