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]
|
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.
|
||||||
|
2
Makefile
2
Makefile
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user