1 # Never directly modify the default environment
2 environment = development
4 repo_full_name = $(shell git remote -v | grep origin | grep push | grep -o '[^:/]\+\/[^/]\+\s\+' | grep -o '[^:]\+\/[^. ]\+')
5 git_sha = $(shell git rev-parse --short HEAD)
17 docker push $(repo_full_name)
19 clean: clean-docker-build
22 docker-compose --project-name ci_build -f test/docker-compose-ci.yml run junction
25 docker build --force-rm -t $(repo_full_name):$(git_sha) .
26 docker tag $(repo_full_name):$(git_sha) $(repo_full_name):latest
28 # Dashes before the commands below indicate a non-zero exit status is okay.
30 -docker rm $(repo_full_name):$(git_sha)
31 -docker rmi $(repo_full_name):$(git_sha)