2015-10-06 07:59:13 +00:00
|
|
|
LDFLAGS = -X main.version=$(VERSION)
|
|
|
|
|
|
|
|
goircd: *.go
|
|
|
|
go build -ldflags "$(LDFLAGS)"
|
2018-03-13 23:10:00 +00:00
|
|
|
|
|
|
|
docker-image: *.go Dockerfile .dockerignore
|
|
|
|
docker build -t $(shell basename $(PACKAGE)):$(VERSION) .
|
|
|
|
|
|
|
|
docker-image-push: docker-image-push-latest docker-image-push-version
|
|
|
|
@true
|
|
|
|
|
|
|
|
docker-image-push-version: docker-image-push-latest docker-image-push-version
|
|
|
|
docker tag $(shell basename $(PACKAGE)):$(VERSION) $(PACKAGE):$(VERSION)
|
|
|
|
docker push $(PACKAGE):$(VERSION)
|
|
|
|
|
|
|
|
docker-image-push-latest: docker-image
|
|
|
|
docker tag $(shell basename $(PACKAGE)):$(VERSION) $(PACKAGE):latest
|
|
|
|
docker push $(PACKAGE):latest
|