github.com/freiheit-com/kuberpult@v1.24.2-0.20240328135542-315d5630abe6/infrastructure/docker/git-ssh/Makefile (about) 1 # This file is part of kuberpult. 2 3 # Kuberpult is free software: you can redistribute it and/or modify 4 # it under the terms of the Expat(MIT) License as published by 5 # the Free Software Foundation. 6 7 # Kuberpult is distributed in the hope that it will be useful, 8 # but WITHOUT ANY WARRANTY; without even the implied warranty of 9 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 # MIT License for more details. 11 12 # You should have received a copy of the MIT License 13 # along with kuberpult. If not, see <https://directory.fsf.org/wiki/License:Expat>. 14 15 # Copyright 2023 freiheit.com 16 17 include ../../../Makefile.variables 18 19 IMAGENAME?=$(DOCKER_REGISTRY_URI)/infrastructure/docker/git-ssh:${IMAGE_TAG} 20 21 build: 22 earthly +build --DOCKER_REGISTRY_URI=$(DOCKER_REGISTRY_URI) --IMAGE_TAG=$(IMAGE_TAG) 23 24 build-pr: build publish 25 echo "Building on pull request" 26 27 build-main: build publish 28 echo "Building on main" 29 30 .PHONY: cleanup-pr 31 cleanup-pr: 32 echo "Nothing to clean" 33 34 .PHONY: cleanup-main 35 cleanup-main: 36 echo "Nothing to clean" 37 38 release: 39 echo "Releasing $(IMAGENAME)" 40 earthly --push +publish --DOCKER_REGISTRY_URI=$(DOCKER_REGISTRY_URI) --IMAGE_TAG=$(IMAGE_TAG) 41 42 publish: release 43 echo $(IMAGE_TAG) 44 echo $(IMAGENAME) 45 46 .PHONY: get-builder-image 47 get-builder-image: 48 @echo "$(KUBERPULT_BUILDER)"