mirror of
https://github.com/jimeh/ozu.io.git
synced 2026-02-19 08:06:39 +00:00
Add docker build tasks
This commit is contained in:
10
Makefile
10
Makefile
@@ -73,3 +73,13 @@ package: dev-deps generate
|
||||
-osarch=${OSARCH} \
|
||||
-ldflags "-X main.Version=${VERSION}" \
|
||||
&& gzip -9 pkg/${VERSION}/${BINNAME}_*
|
||||
|
||||
bin/ozuio_linux_amd64: $(SOURCES)
|
||||
CGO_ENABLED=0 GOOS=linux ARCH=amd64 \
|
||||
go build -a -o bin/ozuio_linux_amd64 \
|
||||
-ldflags "-X main.Version=${VERSION}"
|
||||
|
||||
.PHONY: build-docker
|
||||
build-docker: bin/ozuio_linux_amd64
|
||||
docker build -t "jimeh/ozu.io:latest" . \
|
||||
&& docker tag "jimeh/ozu.io:latest" "jimeh/ozu.io:${VERSION}"
|
||||
|
||||
Reference in New Issue
Block a user