Explorar el Código

make docker-push: add image tag to suggested git tag message

Fabian Peter Hammerle hace 3 años
padre
commit
ef034c6f61
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Makefile

+ 1 - 1
Makefile

@@ -29,4 +29,4 @@ podman-build: worktree-clean
 
 docker-push: docker-build
 	sudo docker push "${IMAGE_NAME}:${IMAGE_TAG}"
-	@echo git tag --sign --message '$(shell sudo docker image inspect --format '{{join .RepoDigests "\n"}}' "${IMAGE_NAME}:${IMAGE_TAG}")' docker/${IMAGE_TAG} $(shell git rev-parse HEAD)
+	@echo git tag --sign --message '$(shell sudo docker image inspect --format '{{join .RepoDigests "\n"}}' "${IMAGE_NAME}:${IMAGE_TAG}" | sed "s/@/:${IMAGE_TAG}@/")' docker/${IMAGE_TAG} $(shell git rev-parse HEAD)