Browse Source

make: added docker-push target

Fabian Peter Hammerle 3 weeks ago
parent
commit
7887079ebe
1 changed files with 4 additions and 1 deletions
  1. 4 1
      Makefile

+ 4 - 1
Makefile

@@ -6,7 +6,10 @@ DOCKER_TAG_ARCH_SUFFIX_x86_64 := amd64
 DOCKER_TAG_ARCH_SUFFIX = ${DOCKER_TAG_ARCH_SUFFIX_${ARCH}}
 DOCKER_TAG = ${DOCKER_TAG_VERSION}-${DOCKER_TAG_ARCH_SUFFIX}
 
-.PHONY: docker-build
+.PHONY: docker-build docker-push
 
 docker-build:
 	sudo docker build -t "${DOCKER_IMAGE_NAME}:${DOCKER_TAG}" .
+
+docker-push: docker-build
+	sudo docker push "${DOCKER_IMAGE_NAME}:${DOCKER_TAG}"