]> git.r.bdr.sh - rbdr/r.bdr.sh/blob - Makefile
Pass environment variables to compose:
[rbdr/r.bdr.sh] / Makefile
1 repo_full_name = $(shell git remote -v | grep origin | grep push | grep -o '[^:/]\+\/[^/]\+\s\+' | grep -o '[^:]\+\/[^. ]\+'| tr '[:upper:]' '[:lower:]')
2 git_sha = $(shell git rev-parse --short HEAD)
3
4 environment = development
5
6 default: preview
7
8 serve: docker-build
9 docker-compose run unlimited.pizza serve --host 0.0.0.0 --config _config.yml,_config.$(environment).yml
10
11 build: docker-build
12 docker-compose run unlimited.pizza build --config _config.yml,_config.$(environment).yml
13
14 update-dependencies:
15 docker-compose run --entrypoint=bundle unlimited.pizza config --global frozen 0; bundle update
16
17 docker-build:
18 docker-compose build
19
20 upload: build
21 docker-compose run --entrypoint=/bin/sh unlimited.pizza ./scripts/upload.sh