golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/android-amd64-emu/Makefile (about) 1 # Copyright 2018 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 go install golang.org/x/build/cmd/xb 12 xb docker build -t golang/$(IMAGE_NAME) . 13 14 push-staging: docker 15 go install golang.org/x/build/cmd/xb 16 $(eval REV := $(shell docker images --format={{.ID}} golang/android-amd64-emu:latest)) 17 xb --staging docker tag golang/$(IMAGE_NAME) REPO/$(IMAGE_NAME):$(REV) 18 xb --staging docker push REPO/$(IMAGE_NAME):$(REV) 19 20 push-prod: docker 21 go install golang.org/x/build/cmd/xb 22 $(eval REV := $(shell docker images --format={{.ID}} golang/android-amd64-emu:latest)) 23 xb --prod docker tag golang/$(IMAGE_NAME) REPO/$(IMAGE_NAME):$(REV) 24 xb --prod docker push REPO/$(IMAGE_NAME):$(REV) 25 26 vm-prod: push-prod 27 ./create-vm.sh