Added app-sre ci pipleline scripts and Makefile targets
Signed-off-by: Tejas Parikh <tparikh@redhat.com>
This commit is contained in:
parent
417f245d04
commit
b35986d764
3 changed files with 42 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -140,6 +140,15 @@ docker-build: pkgs build
|
|||
git checkout $(NAME)
|
||||
echo $(TAG)
|
||||
|
||||
app-sre-docker-build:
|
||||
# get named head (ex: branch, tag, etc..)
|
||||
export NAME=$(shell git rev-parse --abbrev-ref HEAD)
|
||||
# checkout commit so .git/HEAD points to full sha (used in Dockerfile)
|
||||
echo "$(SHA)"
|
||||
git checkout $(SHA)
|
||||
$(BUILD_CMD) -t ${IMG} .
|
||||
git checkout $(NAME)
|
||||
|
||||
run: license
|
||||
goreman start
|
||||
|
||||
|
|
Reference in a new issue