graphql-engine/server/Makefile
Anon Ray 9d2d158532 server: build now is multi-stage builds (fix #29)
- Change the build flow to use docker multi-stage builds
2018-07-02 16:40:13 +00:00

32 lines
933 B
Makefile

project := graphql-engine
registry := hasura
version := $(shell ../scripts/get-version.sh)
stack_resolver := lts-11.15
packager_ver := 1.1
image: $(project).cabal
docker build -t "$(registry)/$(project):$(version)" \
-f packaging/Dockerfile \
--build-arg build_flags=--fast \
--build-arg project=$(project) \
--build-arg stack_resolver=$(stack_resolver) \
--build-arg packager_version=$(packager_ver) \
.
release-image: $(project).cabal
docker build -t "$(registry)/$(project):$(version)" \
-f packaging/Dockerfile \
--build-arg project=$(project) \
--build-arg stack_resolver=$(stack_resolver) \
--build-arg packager_version=$(packager_ver) \
.
push: $(project).cabal
docker push $(registry)/$(project):$(version)
packager: packaging/packager.df
docker build -t "$(registry)/graphql-engine-packager:$(packager_ver)" -f packaging/packager.df ./packaging/
.PHONY: image release-image push packager