Skip to content

Commit

Permalink
Add CI/CD for deploying table definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
medvedev1088 committed Jul 26, 2023
1 parent 96b7761 commit 6dd9dbf
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/cicd-on-pr.yml
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 \

0 comments on commit 6dd9dbf

Please sign in to comment.