diff --git a/.circleci/config.yml b/.circleci/config.yml index b18cd66..320e8c2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,6 +33,7 @@ jobs: - image: circleci/golang:1.12 steps: - checkout + - setup_remote_docker - run: ./.circleci/docker-login.sh - run: curl -sL https://git.io/goreleaser | bash workflows: diff --git a/.circleci/docker-login.sh b/.circleci/docker-login.sh index 2adb413..172767f 100755 --- a/.circleci/docker-login.sh +++ b/.circleci/docker-login.sh @@ -1,2 +1,2 @@ #!/bin/sh -docker login -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD" \ No newline at end of file +echo "$DOCKER_PASSWORD" | docker login --username $DOCKER_USERNAME --password-stdin \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index 0e08cb6..94948fc 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -9,12 +9,13 @@ builds: - amd64 env: - CGO_ENABLED=0 -archive: - name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' - format: tar.gz - files: - - LICENSE* - - README* +archives: + - id: github + name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' + format: tar.gz + files: + - LICENSE* + - README* checksum: name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' dockers: @@ -27,15 +28,15 @@ dockers: binaries: - wwhrd dockerfile: Dockerfile -brew: - github: - owner: frapposelli - name: homebrew-tap - commit_author: - name: Fabio Rapposelli - email: fabio@rapposelli.org - folder: Formula - homepage: "https://github.com/frapposelli/wwhrd/blob/master/README.md" - description: "Have Henry Rollins check vendored licenses in your Go project." - test: | - system "#{bin}/wwhrd -v" +brews: + - folder: Formula + github: + owner: frapposelli + name: homebrew-tap + commit_author: + name: Fabio Rapposelli + email: fabio@rapposelli.org + homepage: "https://github.com/frapposelli/wwhrd/blob/master/README.md" + description: "Have Henry Rollins check vendored licenses in your Go project." + test: | + system "#{bin}/wwhrd -v"