golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cmd/makemac/Makefile (about) 1 # Copyright 2023 The Go Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style 3 # license that can be found in the LICENSE file. 4 5 MUTABLE_VERSION ?= latest 6 VERSION ?= $(shell git rev-parse --short HEAD) 7 8 IMAGE_PROD := gcr.io/symbolic-datum-552/makemac 9 10 docker-prod: 11 docker build -f Dockerfile --force-rm --tag=$(IMAGE_PROD):$(VERSION) ../.. 12 docker tag $(IMAGE_PROD):$(VERSION) $(IMAGE_PROD):$(MUTABLE_VERSION) 13 14 push-prod: docker-prod 15 docker push $(IMAGE_PROD):$(MUTABLE_VERSION) 16 docker push $(IMAGE_PROD):$(VERSION) 17 18 deploy-prod: push-prod 19 go install golang.org/x/build/cmd/xb 20 xb --prod kubectl --namespace prod set image deployment/makemac-deployment makemac=$(IMAGE_PROD):$(VERSION)