2 # Never directly modify the default environment
3 environment = development
5 repo_full_name = $(shell git remote -v | grep origin | grep push | grep -o '[^:/]\+\/[^/]\+\s\+' | grep -o '[^:]\+\/[^. ]\+')
6 git_sha = $(shell git rev-parse --short HEAD)
7 git_branch = $(shell git symbolic-ref HEAD 2>/dev/null | cut -d"/" -f 3)
8 whoami = $(shell whoami)
20 docker push $(repo_full_name)
22 clean: clean-docker-build
25 docker-compose --project-name ci_build -f test/docker-compose-ci.yml run dead-drop
28 docker build --force-rm -t $(repo_full_name):$(git_sha) .
29 docker tag $(repo_full_name):$(git_sha) $(repo_full_name):latest
31 # Dashes before the commands below indicate a non-zero exit status is okay.
33 -docker rm $(repo_full_name):$(git_sha)
34 -docker rmi $(repo_full_name):$(git_sha)