From dab55586b4e7fce591f113bd90f849da3c80f491 Mon Sep 17 00:00:00 2001 From: Tomoya AMACHI Date: Thu, 5 Mar 2020 05:25:38 +0900 Subject: [PATCH] update circleci --- .circleci/config.yml | 11 +++- .goreleaser.yaml | 142 +++++++++++++++++++++---------------------- 2 files changed, 79 insertions(+), 74 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 27e2c96..89340c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -23,10 +23,15 @@ jobs: - run: go test ./... release: <<: *defaults - steps: - checkout - - run: sudo apt-get install -y rpm && curl -sL https://git.io/goreleaser | bash - + - setup_remote_docker: + version: 18.06.0-ce + - run: + name: setup docker + command: docker login -u goodwithtech -p $DOCKERHUB_TOKEN + - run: + name: release + command: sudo apt-get install -y rpm && curl -sL https://git.io/goreleaser | bash workflows: version: 2 diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9ae9d8e..83be524 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -9,78 +9,78 @@ builds: env: - CGO_ENABLED=0 goos: -# - darwin + - darwin - linux -# - windows -# - freebsd -# - openbsd -# goarch: -# - amd64 -# - 386 -# - arm -# - arm64 -# goarm: -# - 7 -# -#nfpms: -# - -# id: dockertags -# formats: -# - deb -# - rpm -# vendor: "goodwithtech" -# homepage: "https://github.com/goodwithtech" -# maintainer: "Tomoya Amachi " -# description: "docker container tag viewer" -# license: "AGPL" -# file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" -# replacements: -# amd64: 64bit -# 386: 32bit -# arm: ARM -# arm64: ARM64 -# darwin: Darwin -# linux: Linux -# windows: Windows -# openbsd: OpenBSD -# netbsd: NetBSD -# freebsd: FreeBSD -# dragonfly: DragonFlyBSD -# -#archives: -# - -# id: dockertags -# format: tar.gz -# format_overrides: -# - goos: windows -# format: zip -# name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" -# replacements: -# amd64: 64bit -# 386: 32bit -# arm: ARM -# arm64: ARM64 -# darwin: macOS -# linux: Linux -# windows: Windows -# openbsd: OpenBSD -# netbsd: NetBSD -# freebsd: FreeBSD -# dragonfly: DragonFlyBSD -# files: -# - README.md -# - LICENSE -# -#brews: -# - -# github: -# owner: goodwithtech -# name: homebrew-r -# folder: Formula -# homepage: "https://github.com/goodwithtech/dockertags" -# description: "docker container tag viewer" -# test: | -# system "#{bin}/program --version" + - windows + - freebsd + - openbsd + goarch: + - amd64 + - 386 + - arm + - arm64 + goarm: + - 7 + +nfpms: + - + id: dockertags + formats: + - deb + - rpm + vendor: "goodwithtech" + homepage: "https://github.com/goodwithtech" + maintainer: "Tomoya Amachi " + description: "docker container tag viewer" + license: "AGPL" + file_name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" + replacements: + amd64: 64bit + 386: 32bit + arm: ARM + arm64: ARM64 + darwin: Darwin + linux: Linux + windows: Windows + openbsd: OpenBSD + netbsd: NetBSD + freebsd: FreeBSD + dragonfly: DragonFlyBSD + +archives: + - + id: dockertags + format: tar.gz + format_overrides: + - goos: windows + format: zip + name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}" + replacements: + amd64: 64bit + 386: 32bit + arm: ARM + arm64: ARM64 + darwin: macOS + linux: Linux + windows: Windows + openbsd: OpenBSD + netbsd: NetBSD + freebsd: FreeBSD + dragonfly: DragonFlyBSD + files: + - README.md + - LICENSE + +brews: + - + github: + owner: goodwithtech + name: homebrew-r + folder: Formula + homepage: "https://github.com/goodwithtech/dockertags" + description: "docker container tag viewer" + test: | + system "#{bin}/program --version" dockers: -