Skip to content

Commit

Permalink
update circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoyamachi committed Mar 4, 2020
1 parent 02ea009 commit dab5558
Show file tree
Hide file tree
Showing 2 changed files with 79 additions and 74 deletions.
11 changes: 8 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
142 changes: 71 additions & 71 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <tomoya.amachi@gmail.com>"
# 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 <tomoya.amachi@gmail.com>"
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:
-
Expand Down

0 comments on commit dab5558

Please # to comment.