Skip to content

Commit

Permalink
ADD: tag to git push.
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaspeters committed May 5, 2024
1 parent bc3fc75 commit eec5687
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#Dockerfile vars

#vars
TAG=3.2.8p1_av2
TAG=v3.2.11p2
IMAGENAME=docker-ispconfig
IMAGEFULLNAME=avhost/${IMAGENAME}
BRANCH=${shell git symbolic-ref --short HEAD}
Expand Down Expand Up @@ -29,12 +29,12 @@ else
endif

build:
@echo ">>>> Build docker image: " ${BRANCH}
@docker build --build-arg TAG=${TAG} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME}:${BRANCH} .
@echo ">>>> Build docker image: " ${TAG}_${BRANCH}
@docker build --build-arg TAG=${TAG} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME}:${TAG}_${BRANCH} .

push:
@echo ">>>> Publish docker image: " ${BRANCH}
@docker build --push --build-arg TAG=${TAG} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME}:${BRANCH} .
@echo ">>>> Publish docker image: " ${TAG}_${BRANCH}
@docker build --push --build-arg TAG=${TAG} --build-arg BUILDDATE=${BUILDDATE} -t ${IMAGEFULLNAME}:${TAG}_${BRANCH} .

seccheck:
grype --add-cpes-if-none dir:.
Expand Down

0 comments on commit eec5687

Please sign in to comment.