github.com/freiheit-com/kuberpult@v1.24.2-0.20240328135542-315d5630abe6/infrastructure/docker/builder/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/builder:$(IMAGE_TAG) 20 IMAGENAME_VERSIONED=$(DOCKER_REGISTRY_URI)/infrastructure/docker/builder:$(VERSION) 21 22 build: 23 earthly +build --DOCKER_REGISTRY_URI=$(DOCKER_REGISTRY_URI) --IMAGE_TAG=$(IMAGE_TAG) --VERSION=$(VERSION) 24 25 build-pr: build publish 26 echo "Building on pull request" 27 28 build-main: build publish 29 echo "Building on main" 30 31 .PHONY: cleanup-pr 32 cleanup-pr: 33 echo "Nothing to clean" 34 35 .PHONY: cleanup-main 36 cleanup-main: 37 echo "Nothing to clean" 38 39 release: 40 echo "Releasing $(IMAGENAME)" 41 earthly --push +publish --DOCKER_REGISTRY_URI=$(DOCKER_REGISTRY_URI) --IMAGE_TAG=$(IMAGE_TAG) --VERSION=$(VERSION) 42 43 publish: release 44 echo $(IMAGE_TAG) 45 echo $(IMAGENAME) 46 47 .PHONY: get-builder-image 48 get-builder-image: 49 @echo "$(KUBERPULT_BUILDER)"