Fix docker-compose for publishing image (#91)

* Fix docker-compose for publishing image

* Add docker build in pr workflow
This commit is contained in:
nikugogoi 2022-06-14 13:03:22 +05:30 committed by GitHub
parent a44724c3d7
commit 48eb594ea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -3,6 +3,13 @@ name: Docker Build
on: [pull_request] on: [pull_request]
jobs: jobs:
build:
name: Run docker build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run docker build
run: make docker-build
test: test:
# Add a dummy job to avoid failing GitHub CI checks. # Add a dummy job to avoid failing GitHub CI checks.
# Other checks to be added later. # Other checks to be added later.

View File

@ -115,7 +115,7 @@ import:
## Build docker image with schema ## Build docker image with schema
.PHONY: docker-build .PHONY: docker-build
docker-build: docker-build:
docker-compose build docker-compose -f docker-compose.test.yml build
## Build docker image for migration ## Build docker image for migration
.PHONY: docker-concise-migration-build .PHONY: docker-concise-migration-build

View File

@ -5,10 +5,9 @@ services:
restart: on-failure restart: on-failure
depends_on: depends_on:
- ipld-eth-db - ipld-eth-db
image: vulcanize/ipld-eth-db
# Build image using local context # Build image using local context
build: build: .
context: .
dockerfile: Dockerfile
environment: environment:
DATABASE_USER: "vdbm" DATABASE_USER: "vdbm"
DATABASE_NAME: "vulcanize_testing" DATABASE_NAME: "vulcanize_testing"