diff --git a/.goreleaser.yml b/.goreleaser.yml index df8beb905..93aa775d4 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,22 +1,15 @@ -# This is an example goreleaser.yaml file with some sane defaults. -# Make sure to check the documentation at http://goreleaser.com +# .goreleaser.yml +# Build customization builds: -- env: - - CGO_ENABLED=0 + - main: s5cmd.go + binary: s5cmd + goos: + - windows + - darwin + - linux + goarch: + - amd64 + - arm64 +# Archive customization archive: - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 -checksum: - name_template: 'checksums.txt' -snapshot: - name_template: "{{ .Tag }}-next" -changelog: - sort: asc - filters: - exclude: - - '^docs:' - - '^test:' \ No newline at end of file + format: tar.gz diff --git a/.travis.yml b/.travis.yml index 8d02c7584..8ac343cde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,7 @@ language: go go: - - 1.8.3 + - master services: - docker @@ -10,7 +10,7 @@ script: - true after_success: - - test -n "$TRAVIS_TAG" && curl -s https://raw.githubusercontent.com/goreleaser/get/master/latest | bash + - test -n "$TRAVIS_TAG" && curl -sL https://git.io/goreleaser | bash - CGO_ENABLED="0" GOARCH="amd64" GOOS="linux" go build -a -installsuffix cgo -o ./app - docker login -u $DOCKER_USER -p $DOCKER_PASSWORD - export REPO=peakcom/s5cmd @@ -19,4 +19,4 @@ after_success: - docker push $REPO:$TRAVIS_BRANCH - export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_TAG ; fi` - if [[ ! -z "${TAG}" ]]; then docker tag $REPO:$TRAVIS_BRANCH $REPO:$TAG; fi - - if [[ ! -z "${TAG}" ]]; then docker push $REPO:$TAG; fi \ No newline at end of file + - if [[ ! -z "${TAG}" ]]; then docker push $REPO:$TAG; fi