Fix docker-compose for publishing image (#91)
* Fix docker-compose for publishing image * Add docker build in pr workflow
This commit is contained in:
parent
a44724c3d7
commit
48eb594ea9
7
.github/workflows/on-pr.yaml
vendored
7
.github/workflows/on-pr.yaml
vendored
@ -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.
|
||||
|
2
Makefile
2
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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user