2020-01-18 01:07:15 +03:00
|
|
|
SHELL := /bin/bash
|
|
|
|
|
|
|
|
VERSION ?= $(shell ../scripts/get-version.sh)
|
2019-04-11 07:11:48 +03:00
|
|
|
export VERSION
|
2018-06-27 16:11:32 +03:00
|
|
|
|
2020-01-18 01:07:15 +03:00
|
|
|
registry := hasura
|
2021-02-23 20:37:27 +03:00
|
|
|
# This packager version is built using the packeger.df in the packaging folder:
|
|
|
|
# docker build -t "hasura/graphql-engine-packager:20210218" -f packager.df .
|
|
|
|
packager_ver := 20210218
|
2021-09-29 07:55:08 +03:00
|
|
|
docs_output := /build/_server_output/docs.tar.gz
|
2018-07-10 13:01:02 +03:00
|
|
|
|
2021-09-24 20:01:40 +03:00
|
|
|
# assumes this is built in circleci
|
|
|
|
ci-docs:
|
|
|
|
# build
|
|
|
|
cabal haddock
|
|
|
|
# copy
|
|
|
|
cd ../dist-newstyle/build/*/*/graphql-engine-*/**/doc/html/graphql-engine/ && tar czf $(docs_output) *
|
|
|
|
|
2018-06-27 16:11:32 +03:00
|
|
|
packager: packaging/packager.df
|
2020-01-18 01:07:15 +03:00
|
|
|
docker build -t '$(registry)/graphql-engine-packager:$(packager_ver)' -f packaging/packager.df ./packaging/
|
2018-07-02 16:56:10 +03:00
|
|
|
|
2021-12-09 12:33:24 +03:00
|
|
|
.PHONY: ci-build ci-docs packager
|