Skip to content

Commit

Permalink
Merge pull request #1 from josegonzalez/master
Browse files Browse the repository at this point in the history
Release 0.0.2
  • Loading branch information
josegonzalez authored Jul 28, 2018
2 parents 5c5dd8f + 9f99afe commit b0a618c
Showing 1 changed file with 39 additions and 1 deletion.
40 changes: 39 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@ NAME = procfile-util
MAINTAINER = josegonzalez
REPOSITORY = go-procfile-util
HARDWARE = $(shell uname -m)
VERSION ?= 0.0.1
VERSION ?= 0.0.2
IMAGE_NAME ?= $(MAINTAINER)/$(NAME)
BUILD_TAG ?= dev
define DESCRIPTION
Utility that allows users to interact with Procfile files
Procfiles may be specified on stdin or via a flag, but
must always be valid yaml.
endef

build:
@$(MAKE) build/darwin/$(NAME)
Expand Down Expand Up @@ -35,4 +40,37 @@ release: build
rm -rf release && mkdir release
tar -zcf release/$(NAME)_$(VERSION)_linux_$(HARDWARE).tgz -C build/linux $(NAME)
tar -zcf release/$(NAME)_$(VERSION)_darwin_$(HARDWARE).tgz -C build/darwin $(NAME)
@$(MAKE) release/$(NAME)_$(VERSION)_amd64.deb
@$(MAKE) release/$(NAME)-$(VERSION)-1.x86_64.rpm
gh-release create $(MAINTAINER)/$(REPOSITORY) $(VERSION) $(shell git rev-parse --abbrev-ref HEAD)

release/$(NAME)_$(VERSION)_amd64.deb: build/linux/$(NAME)
fpm \
--architecture amd64 \
--category utils \
--description "$$DESCRIPTION" \
--input-type dir \
--license 'MIT License' \
--maintainer "Jose Diaz-Gonzalez <[email protected]>" \
--name procfile-util \
--output-type deb \
--package release/$(NAME)_$(VERSION)_amd64.deb \
--url "https://github.com/$(MAINTAINER)/$(REPOSITORY)" \
--version $(VERSION) \
build/linux/$(NAME)=/usr/local/bin/$(NAME)

release/$(NAME)-$(VERSION)-1.x86_64.rpm: build/linux/$(NAME)
fpm \
--architecture x86_64 \
--category utils \
--description "$$DESCRIPTION" \
--input-type dir \
--license 'MIT License' \
--maintainer "Jose Diaz-Gonzalez <[email protected]>" \
--name procfile-util \
--output-type rpm \
--package release/$(NAME)-$(VERSION)-1.x86_64.rpm \
--rpm-os linux \
--url "https://github.com/$(MAINTAINER)/$(REPOSITORY)" \
--version $(VERSION) \
build/linux/$(NAME)=/usr/local/bin/$(NAME)

0 comments on commit b0a618c

Please sign in to comment.