Skip to content

Commit

Permalink
Preparing v1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaupu committed Nov 5, 2017
1 parent 759a28b commit d347043
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ deploy:
api_key:
secure: iWU4W67JZDSD7z8U9oOrZrIrfUqyfda5OgtSSLxFEMbFQ53O2YqtfWDYHJEMQr+0FHuirYz24djWcJsO0nO9JpPjdNt33RE+iUVWbtAPrLBXFzGnW1bSyEG7JyX/lKwGGrHyEQPuZCBucrYmdPB9Wtpq3MTRfhnorTwNGWv4i6KcCcFSoPkPzMUCzIeW6EbbMV4YnsX9kzbKie6CMbOrDVhOHIvGyRfMrAv6+64i1KHkaPypJWDMJaguOQdRtGHRoSaa850YpqP6ohnnyMr478slWphUaV6tDX3VAwEJNkZctOQ0GZleSir/HpgGTvD4uk0PDbxQ1AobvhwO6wkxoOoy8NgmSCLbp4DVp8d8NgVRrrkEHoDXlbm0awpoRmAfwItHwjl6tM6LOa+KhvYWF/OHaUsHAGkHJy5d/kqnpkh1q2c6yDC0uFdIvrm91JaiYKN3ObxNCZSdJTTi1dO0k1fs4HV+4EWkZ4bmkvWhk3QTPsiXeYExedHAZ3ICEUjr95VYS9aT0hCCdhUJ5g4vN468h4luhKprH+fZDlqgkuDVrp8R7nnhJOZT369fUrFN+HUmuqoLn208H7pp84nxXqB2/uOMW9Zjk2s8I0VGYuCmWZsJPt81RNPmXLSuGnmeGJYwvi0LrfAb8x3OrQgMFM/dDosD0RJubHfx8ajoGFk=
file_glob: true
file: bin_release/*
skip_cleanup: true
on:
tags: true
file: bin_release/*
skip_cleanup: true
on:
tags: true
go: 1.8
9 changes: 6 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
BIN=bin

IMAGE_NAME=freenas-provisioner
IMAGE_VERSION=0.7
REMOTE_NAME=$(DOCKER_ID_USER)/$(IMAGE_NAME)

all: build

fmt:
go fmt ./...

image: $(BIN)/freenas-provisioner check-docker-hub
tmp:
mkdir -p tmp/

image: tmp $(BIN)/freenas-provisioner check-docker-hub
docker build -t $(IMAGE_NAME):$(IMAGE_VERSION) -f Dockerfile.scratch .

tag: image
Expand All @@ -19,7 +21,7 @@ push: tag
docker push $(REMOTE_NAME):$(IMAGE_VERSION)

vendor:
glide install -v
glide install -v --strip-vcs

$(BIN)/freenas-provisioner build: vendor $(BIN) $(shell find . -name "*.go")
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static"' -o $(BIN)/freenas-provisioner .
Expand All @@ -30,6 +32,7 @@ darwin: vendor $(BIN) $(shell find . -name "*.go")
clean:
go clean -i
rm -rf $(BIN)
rm -rf tmp/
rm -rf vendor

$(BIN):
Expand Down
2 changes: 1 addition & 1 deletion pod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
spec:
containers:
- name: freenas-provisioner
image: docker.io/nmaupu/freenas-provisioner:0.7
image: docker.io/nmaupu/freenas-provisioner:1.0
imagePullPolicy: Always
env:
- name: NODE_NAME
Expand Down

0 comments on commit d347043

Please sign in to comment.