kubernetes-handbook/manifests/test/rolling-update-test/Makefile

18 lines
361 B
Makefile
Raw Normal View History

2017-05-10 17:12:34 +08:00
all: build push clean
.PHONY: build push clean
TAG = v2
# Build for linux amd64
build:
GOOS=linux GOARCH=amd64 go build -o hello${TAG} main.go
docker build -t sz-pg-oam-docker-hub-001.tendcloud.com/library/hello:${TAG} .
# Push to tenxcloud
push:
docker push sz-pg-oam-docker-hub-001.tendcloud.com/library/hello:${TAG}
# Clean
clean:
rm -f hello${TAG}