Skip to content

Commit

Permalink
Update goreleaser
Browse files Browse the repository at this point in the history
Signed-off-by: Edward Wilde <[email protected]>
  • Loading branch information
ewilde committed Feb 27, 2020
1 parent 9cb2b58 commit 49c824d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 19 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ website/vendor

# Keep windows files with windows line endings
*.winfile eol=crlf
/.vs
/.vs
dist/
23 changes: 16 additions & 7 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
language: go
go:
- 1.10.x

addons:
apt:
packages:
# needed only if you use the snap pipe:
- snapcraft
services:
- docker
install:
- go get github.com/kardianos/govendor
script:
- make travisbuild
after_success:
- make release
env:
global:
secure: vlmqgSaI4YF4XxXVtbHb8/5KP7DL9dB516dnpEBXHPmI03PsQ4nSgOFw3YxhYKA/EaP9SZ8Pl3CTYKiE8pwsRQ8MqREM6YK45zX5tgbNVsnr/2ASLFVZvsCCbBOfiDrZkSg3zXeAszgQN/Zo5gelxo0cdUCTaAz0ZH+I3VyTzQKDRmBahHSmjnAZFjHCYoMR9tt8jRMDdtY8Gt098ciuTbrxSMVMIVPkNZX/Cy54FZoU4Ua5sWFIBviBeisH3Qg4xYflHjX0BXPuvu+eLTHVLXenE+mi13dxBb5+3GKcOR/t64L98sJLsOBIRK34q1A35lN2XB1JZZ3iDVkAlIwlF6nO+dJZQhU11QDe7kjqbIkZYEa8Fw7OOG5UxsGSJfofSky0Wnu15HZnGh/34rWFjojId6YPmvblAX3zWcLdNcPPKuuhymkmvHrjMqEtcMC0WHbuQEoBRH8brDvG4IEhIWmrt6iCElCT2TdOJCH8W/kVGAQKlWICf5oi+oY3po/MRk9LXycqc0zt+kSVBXLA7IwHVXNuZKwVrJmpwe9Osbq3iN3E+1YnI24+su0pzDG+10i2VKivVpv/rqxJ0MKwn7Iu2XB42qSF11+MaIrEpz41j07Ymz92Eqr4ME1N4gLyykICnFIrXSNr30KiHLpgqcuG0Q8JTkn/J/RYeWxQgvg=
- GO111MODULE=on
- GOFLAGS=-mod=vendor
- secure: vlmqgSaI4YF4XxXVtbHb8/5KP7DL9dB516dnpEBXHPmI03PsQ4nSgOFw3YxhYKA/EaP9SZ8Pl3CTYKiE8pwsRQ8MqREM6YK45zX5tgbNVsnr/2ASLFVZvsCCbBOfiDrZkSg3zXeAszgQN/Zo5gelxo0cdUCTaAz0ZH+I3VyTzQKDRmBahHSmjnAZFjHCYoMR9tt8jRMDdtY8Gt098ciuTbrxSMVMIVPkNZX/Cy54FZoU4Ua5sWFIBviBeisH3Qg4xYflHjX0BXPuvu+eLTHVLXenE+mi13dxBb5+3GKcOR/t64L98sJLsOBIRK34q1A35lN2XB1JZZ3iDVkAlIwlF6nO+dJZQhU11QDe7kjqbIkZYEa8Fw7OOG5UxsGSJfofSky0Wnu15HZnGh/34rWFjojId6YPmvblAX3zWcLdNcPPKuuhymkmvHrjMqEtcMC0WHbuQEoBRH8brDvG4IEhIWmrt6iCElCT2TdOJCH8W/kVGAQKlWICf5oi+oY3po/MRk9LXycqc0zt+kSVBXLA7IwHVXNuZKwVrJmpwe9Osbq3iN3E+1YnI24+su0pzDG+10i2VKivVpv/rqxJ0MKwn7Iu2XB42qSF11+MaIrEpz41j07Ymz92Eqr4ME1N4gLyykICnFIrXSNr30KiHLpgqcuG0Q8JTkn/J/RYeWxQgvg=
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux
10 changes: 1 addition & 9 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ default: build
build: fmtcheck
go install

travisbuild: release-deps default
travisbuild: default

sweep:
@echo "WARNING: This will destroy infrastructure. Use only in development accounts."
Expand Down Expand Up @@ -53,14 +53,6 @@ test-compile:
fi
go test -c $(TEST) $(TESTARGS)

release-deps:
go get -u golang.org/x/net/context; \
go get -u github.com/mitchellh/gox; \

release:
go get github.com/goreleaser/goreleaser; \
goreleaser; \

website:
ifeq (,$(wildcard $(GOPATH)/src/$(WEBSITE_REPO)))
echo "$(WEBSITE_REPO) not found in your GOPATH (necessary for layouts and assets), get-ting..."
Expand Down
7 changes: 5 additions & 2 deletions goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@ builds:
- windows
goarch:
- amd64
archive:
format: zip
archives:
- id: terraform-provider-openfaas_v{{.Version}}-{{.Arch}}
format: zip
files:
- none*

0 comments on commit 49c824d

Please sign in to comment.