golang.org/x/build@v0.0.0-20240506185731-218518f32b70/env/wasip1-wasm-wasmtime/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 PROD_REPO=gcr.io/symbolic-datum-552 7 8 usage: 9 echo "Use prod or dev targets. For dev, specify your Docker repository with the REPO=foo argument." ; exit 1 10 11 prod: Dockerfile 12 docker build -t $(PROD_REPO)/$(IMAGE_NAME):latest --build-arg REPO=$(PROD_REPO) -f Dockerfile . 13 14 pushprod: prod 15 docker push $(PROD_REPO)/$(IMAGE_NAME):latest 16 17 # You must provide a REPO=your-repo-name arg when you make 18 # this target. REPO is the name of the Docker repository 19 # that will be prefixed to the name of the image being built. 20 dev: Dockerfile 21 docker build -t $(REPO)/$(IMAGE_NAME):latest --build-arg REPO=$(REPO) -f Dockerfile . 22 docker push $(REPO)/$(IMAGE_NAME):latest