Skip to content

Commit

Permalink
Merge pull request #244 from 1138-4EB/gha
Browse files Browse the repository at this point in the history
Update deprecated goreleaser fields and add GHA workflow
  • Loading branch information
wagoodman authored Nov 6, 2019
2 parents 0b147b0 + 0ffd1d0 commit 61ad1f2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 18 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: 'snapshot'
on: [push, pull_request]
jobs:
snapshot:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v1
with:
go-version: '1.13.x'
- uses: actions/checkout@v1
- name: install deps
run: |
curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sudo sh -s -- -b /usr/local/bin/ latest
curl -sfL https://install.goreleaser.com/github.com/goreleaser/goreleaser.sh | sudo sh -s -- -b /usr/local/bin/ latest
sudo apt-get update
sudo apt-get install -y libdevmapper-dev libgpgme11-dev
- run: go get ./...
- run: golangci-lint run -v
- run: goreleaser --snapshot --skip-publish --rm-dist
- run: docker images
- uses: actions/upload-artifact@master
with:
name: dist
path: dist
36 changes: 18 additions & 18 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ dockers:
- "quay.io/wagoodman/dive:v{{ .Major }}"
- "quay.io/wagoodman/dive:v{{ .Major }}.{{ .Minor }}"
- "quay.io/wagoodman/dive:latest"
archive:
format: tar.gz

format_overrides:
- goos: windows
format: zip
archives:
- format: tar.gz
format_overrides:
- goos: windows
format: zip

nfpm:
license: MIT
maintainer: Alex Goodman
homepage: https://github.com/wagoodman/dive/
formats:
- deb
- rpm
nfpms:
- license: MIT
maintainer: Alex Goodman
homepage: https://github.com/wagoodman/dive/
formats:
- deb
- rpm

brew:
github:
owner: wagoodman
name: homebrew-dive
homepage: "https://github.com/wagoodman/dive/"
description: "A tool for exploring each layer in a docker image"
brews:
- github:
owner: wagoodman
name: homebrew-dive
homepage: "https://github.com/wagoodman/dive/"
description: "A tool for exploring each layer in a docker image"

0 comments on commit 61ad1f2

Please sign in to comment.