- Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
11 lines (10 loc) · 439 Bytes
/
Makefile
File metadata and controls
11 lines (10 loc) · 439 Bytes
1
2
3
4
5
6
7
8
9
10
11
VERSION = 0.2.0
OUTPUT_FILE = docker/dist/rancher-cron
build:
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o $(OUTPUT_FILE) && chmod +x $(OUTPUT_FILE)
package: build
docker build -t socialengine/rancher-cron:$(VERSION) docker
publish:
docker tag socialengine/rancher-cron:$(VERSION) socialengine/rancher-cron:latest && \
docker push socialengine/rancher-cron:$(VERSION) && \
docker push socialengine/rancher-cron:latest