Skip to content
This repository has been archived by the owner on Mar 22, 2023. It is now read-only.

Commit

Permalink
Drop DHUSER
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 10, 2019
1 parent 2bfef75 commit 1bce60a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .metadata.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
# Each line must have an export clause.
# This file is parsed and sourced by the Makefile, Docker and Homebrew builds.

# Must match the repo name.
# Must match the repo name to make things easy. Otherwise, fix some other paths.
BINARY="hello-world"
# github username
GHUSER="golift"
# docker hub username
DHUSER="golift"
# Github repo containing homebrew formula repo.
HBREPO="golift/homebrew-mugs"
MAINT="David Newhall II <david at sleepers dot pro>"
Expand All @@ -20,7 +18,7 @@ LICENSE="MIT"
# This affects the homebrew formula (launchd) and linux packages (systemd).
FORMULA="service"

export BINARY GHUSER DHUSER HBREPO MAINT VENDOR DESC GOLANGCI_LINT_ARGS CONFIG_FILE LICENSE FORMULA
export BINARY GHUSER HBREPO MAINT VENDOR DESC GOLANGCI_LINT_ARGS CONFIG_FILE LICENSE FORMULA

# The rest is mostly automatic.
# Fix the repo if it doesn't match the binary name.
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ script:
- make test
- make docker
# Test built docker image.
- docker run $DHUSER/$BINARY:local -v 2>&1 | grep -Eq "^$BINARY v$VERSION"
- docker run $BINARY -v 2>&1 | grep -Eq "^$BINARY v$VERSION"
# Build everything
- rvm 2.0.0 do make release
after_success:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ docker:
--build-arg "BINARY=$(BINARY)" \
--build-arg "GHREPO=$(GHREPO)" \
--build-arg "CONFIG_FILE=$(CONFIG_FILE)" \
--tag $(DHUSER)/$(BINARY):local .
--tag $(BINARY) .

# Build an environment that can be packaged for linux.
package_build_linux: readme man linux
Expand Down
3 changes: 2 additions & 1 deletion scripts/formula-deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ git clone git@github.com:${HBREPO}.git homebrew_release_repo

cp ${BINARY}.rb homebrew_release_repo/Formula
pushd homebrew_release_repo
git commit -m "Update ${BINARY} on Release: v${VERSION}-${ITERATION}" Formula/${BINARY}.rb
git add Formula/${BINARY}.rb
git commit -m "Update ${BINARY} on Release: v${VERSION}-${ITERATION}"
git push
popd

0 comments on commit 1bce60a

Please sign in to comment.