golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/linux-arm64-bullseye/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 IMAGE_NAME=$(shell basename $(CURDIR)) 6 7 usage: 8 echo "see Makefile for usage for building $(IMAGE_NAME)" 9 10 docker: Dockerfile 11 # If this command is failing, run: 12 # docker run --rm --privileged multiarch/qemu-user-static --reset -p yes 13 # docker buildx create --name mybuilder 14 docker buildx build -t golang/$(IMAGE_NAME) --platform linux/arm64 --load -f Dockerfile ../.. 15 16 testssh: docker 17 go install golang.org/x/build/cmd/buildlet/testssh 18 testssh --start-image=golang/$(IMAGE_NAME) 19 20 push-staging: docker 21 go install golang.org/x/build/cmd/xb 22 xb --staging docker tag golang/$(IMAGE_NAME) REPO/$(IMAGE_NAME):latest 23 xb --staging docker push REPO/$(IMAGE_NAME):latest 24 25 push-prod: docker 26 xb --prod docker tag golang/$(IMAGE_NAME) REPO/$(IMAGE_NAME):latest 27 xb --prod docker push REPO/$(IMAGE_NAME):latest