-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CI/CD for deploying table definitions
- Loading branch information
1 parent
96b7761
commit 6dd9dbf
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
name: CICD (PR) | ||
on: | ||
pull_request: | ||
branches: [main] | ||
types: | ||
- opened | ||
- reopened | ||
- synchronize | ||
- ready_for_review | ||
|
||
jobs: | ||
run-gcp-script: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Authenticate Docker to GCR | ||
run: | | ||
echo "${{ secrets.SERVICE_ACCOUNT_DEV }}" | docker login -u _json_key --password-stdin https://gcr.io | ||
- name: Run Docker image | ||
run: | | ||
echo "${{ secrets.SERVICE_ACCOUNT_DEV }}" > /tmp/credentials.json | ||
docker run \ | ||
-v $PWD:/app \ | ||
-e GOOGLE_APPLICATION_CREDENTIALS=/tmp/credentials.json \ | ||
gcr.io/nansen-blockchain-etl-dev/evmchain-etl-parse:pr-350 \ | ||
--project nansen-blockchain-etl-dev \ |