diff --git a/.github/workflows/on-pr.yaml b/.github/workflows/on-pr.yaml index 40c3976..9a68a2e 100644 --- a/.github/workflows/on-pr.yaml +++ b/.github/workflows/on-pr.yaml @@ -3,6 +3,13 @@ name: Docker Build on: [pull_request] jobs: + build: + name: Run docker build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Run docker build + run: make docker-build test: # Add a dummy job to avoid failing GitHub CI checks. # Other checks to be added later. diff --git a/Makefile b/Makefile index 02fbe49..9beb5f4 100644 --- a/Makefile +++ b/Makefile @@ -115,7 +115,7 @@ import: ## Build docker image with schema .PHONY: docker-build docker-build: - docker-compose build + docker-compose -f docker-compose.test.yml build ## Build docker image for migration .PHONY: docker-concise-migration-build diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 1c64c75..7669176 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -5,10 +5,9 @@ services: restart: on-failure depends_on: - ipld-eth-db + image: vulcanize/ipld-eth-db # Build image using local context - build: - context: . - dockerfile: Dockerfile + build: . environment: DATABASE_USER: "vdbm" DATABASE_NAME: "vulcanize_testing"