Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
add Docker Hub push to release make target
  • Loading branch information
nickysemenza committed Nov 4, 2020
1 parent e905e91 commit 6152bbb
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Makefile
Expand Up @@ -62,11 +62,21 @@ __check_defined = \
snapshot:
docker run --rm -v $(PWD):/workdir -w /workdir cbroglie/goreleaser-cgo:1.12.12-musl goreleaser --rm-dist --snapshot --skip-publish

.PHONY: release
release:
.PHONY: github-release
github-release:
@:$(call check_defined, GITHUB_TOKEN)
docker run -e GITHUB_TOKEN=$(GITHUB_TOKEN) --rm -v $(PWD):/workdir -w /workdir cbroglie/goreleaser-cgo:1.12.12-musl goreleaser --rm-dist

.PHONY: docker-build
docker-build:
docker build -f Dockerfile -t cfssl/cfssl:$(VERSION) .
.PHONY: docker-push
docker-push:
docker push cfssl/cfssl:$(VERSION)

.PHONY: release
release: github-release docker-build docker-push

BUILD_PATH := $(CURDIR)/build
INSTALL_PATH := $(BUILD_PATH)/usr/local/bin

Expand Down

0 comments on commit 6152bbb

Please sign in to comment.