Skip to content

Commit

Permalink
travis signing
Browse files Browse the repository at this point in the history
  • Loading branch information
hunterlong committed Nov 29, 2018
1 parent df3c1ee commit a7d1b0a
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,6 @@ script:
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then make coverage; fi

after_success:
- wget -O statup.gpg $SIGN_URL
- gpg --import statup.gpg
- if [[ "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" = "false" ]]; then make travis-build; fi
18 changes: 17 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
VERSION=$(shell cat version.txt)
SIGN_KEY=1CD16653F89EDB72A5621D2D253A2CB79B43052D
BINARY_NAME=statup
GOPATH:=$(GOPATH)
GOCMD=go
Expand Down Expand Up @@ -242,22 +243,31 @@ tag:
# compress built binaries into tar.gz and zip formats
compress:
cd build && mv alpine-linux-amd64 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-alpine.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-linux-alpine.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-darwin-10.6-amd64 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-mac64.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-osx-x64.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-darwin-10.6-386 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-mac32.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-osx-x32.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-linux-amd64 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-linux64.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-linux-x64.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-linux-386 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-linux32.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-linux-x32.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-windows-6.0-amd64.exe $(BINARY_NAME).exe
cd build && zip $(BINARY_NAME)-windows-x64.zip $(BINARY_NAME).exe && rm -f $(BINARY_NAME).exe
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-win64.asc --armor $(BINARY_NAME).exe
cd build && zip $(BINARY_NAME)-windows-x64.zip $(BINARY_NAME).exe && rm -f $(BINARY_NAME).exe
cd build && mv cmd-linux-arm-7 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-arm7.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-linux-arm7.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-linux-arm-6 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-arm6.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-linux-arm6.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)
cd build && mv cmd-linux-arm64 $(BINARY_NAME)
cd build && gpg --default-key $(SIGN_KEY) --batch --detach-sign --output gpg-statup-arm64.asc --armor $(BINARY_NAME)
cd build && tar -czvf $(BINARY_NAME)-linux-arm64.tar.gz $(BINARY_NAME) && rm -f $(BINARY_NAME)

# push the :dev docker tag using curl
Expand Down Expand Up @@ -305,6 +315,12 @@ snapcraft-release:
snap:
snapcraft cleanbuild

sign-all:
gpg --default-key CB1895149EEA4A2B8DBC9FB4C326E5C3B26BBA53 --detach-sign --armor statuper

valid-sign:
gpg --verify statuper.asc

# install xgo and pull the xgo docker image
xgo-install: clean
go get github.com/karalabe/xgo
Expand Down
51 changes: 51 additions & 0 deletions dev/statup.gpg
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBFwAVfYBEADqtOwm7lUOWAKl7KTS9Po/ItjXpbnmRJOHOO79tWCzufKpWHMI
XTCl/czuXazWHqhHGLtVd6g7OEG6i++eA+ZAw6ZWXHCGJqXoBnOtLJzMUE93d0k2
3tDjmg4+2K24sK9IjzN3isU5D+TnfaNHNQUAE4C+GNGGWaTNpxM6ZNlyuUJO5M4i
HMGK8FnbCN+kHvXa1SeGGaRWgZIgQIgcJmW1V8RbNSjnvR9HzgQ9sm80tQIrMHF9
7y+Nj0nyPYLVEQhR4TBVd5N72/pMlSSjvTTCjWo5ALuvKU8ktcQppMAV8pZX6bDi
S9mv6sSwFcgfkQljr9iRci8pRYas/oMgVWvimuoC7mK5B7K11dVniHYDbHD/XJXg
LbUhqKv68//J54DWLBZ4r6wjA08ycYIUbCGOJL+sHkS8qSs5hwclefXRsCI3kfmN
o+ry5wI/teI6Vgk0AQT1ZzUg/rtpv/WVg0i/yT8bGZIfVpNSFxnOcg8BlTCWSjGm
TZflwJdLX+r/IyFDOC986MWgqK2p+7DgYtT1888wQkxvmDjuynN6skvd61AnbbxI
s3j0vB1dvXkoW1FO4jMm8VvgLYA2O1mOzX7a373OSkvFgvo9palj85AzPeAG1wZ9
mG4N2s39hYcVvywE6c/Uh0bvccryf1kb8pk41inaVLmRhtV12sKbfM3guQARAQAB
tBxIdW50ZXIgTG9uZyA8aW5mb0BzdGF0dXAuaW8+iQJOBBMBCAA4FiEEHNFmU/ie
23KlYh0tJTost5tDBS0FAlwAVfYCGwMFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AA
CgkQJTost5tDBS1EWw/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