Skip to content

Commit

Permalink
Enable to install with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
nakabonne committed Jul 23, 2020
1 parent e7d4563 commit dd38848
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ jobs:
- name: Unshallow
run: git fetch --prune --unshallow
- name: Setup Go
uses: actions/setup-go@v1
uses: actions/setup-go@v2
with:
go-version: 1.14
- name: Login docker.io
run: docker login -u nakabonne -p ${{ secrets.DOCKER_PASSWORD }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_WITH_REPO_PERM}}
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_WITH_REPO_PERM }}
13 changes: 13 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ builds:
env:
- CGO_ENABLED=0
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}} -X main.date={{.Date}}

archives:
- replacements:
darwin: Darwin
linux: Linux
386: 32-bit
amd64: x86_64

checksum:
name_template: 'checksums.txt'

snapshot:
name_template: "{{ .Tag }}-next"

changelog:
filters:
exclude:
Expand All @@ -37,3 +41,12 @@ brews:
name: homebrew-golintui
homepage: 'https://github.com/nakabonne/golintui'
description: 'A simple terminal UI for golangci-lint'

dockers:
- dockerfile: Dockerfile
binaries:
- golintui
image_templates:
- "nakabonne/golintui:latest"
- "nakabonne/golintui:{{ .Tag }}"
- "nakabonne/golintui:v{{ .Major }}.{{ .Minor }}"
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM golang:1.14

RUN curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.29.0

COPY golintui /usr/bin/
CMD ["golintui"]

0 comments on commit dd38848

Please sign in to comment.