Skip to content

Commit

Permalink
add goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
technomad21c committed Jun 29, 2020
1 parent df631fe commit fd3153d
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/workflows/push_dockerhub.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: push-dockerhub

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,6 @@ sig

vendor/
.vscode
.devcontainer
.devcontainer

dist
3 changes: 3 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ dockers:
binaries:
- signatory
- signatory-cli
builds:
- signatory
- signatory-cli
image_templates:
- "technomad21c/signatory:latest"
- "technomad21c/signatory:{{ .Tag }}"
Expand Down

0 comments on commit fd3153d

Please sign in to comment.