Skip to content

Commit

Permalink
ci: fix git-chglog install breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
HabibMAALEM committed Mar 3, 2021
1 parent 493a131 commit 94da258
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 24 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
- name: Install Go
uses: actions/setup-go@v2
with:
go-version: 1.15.x
go-version: 1.16.x
- name: Generate CHANGELOG.md
run: |
GO111MODULE=off go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
cd; GO111MODULE=on go get -u github.com/git-chglog/git-chglog/cmd/git-chglog
cd $GITHUB_WORKSPACE
git-chglog --config .ci/git-chglog.yml --output=CHANGELOG.md $(git describe --tags $(git rev-list --tags --max-count=1))
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
49 changes: 27 additions & 22 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
archives:
- format_overrides:
- goos: windows
format: zip

before:
hooks:
- make clean
- make clean

builds:
- env:
- CGO_ENABLED=0
- CGO_ENABLED=0
ldflags:
- -s -w
- -X github.com/groupe-edf/watchdog/internal/version.Version={{.Tag}}
- -X github.com/groupe-edf/watchdog/internal/version.BuildDate={{.Date}}
- -X github.com/groupe-edf/watchdog/internal/version.Commit={{.FullCommit}}
- -X github.com/groupe-edf/watchdog/internal/version.Sha={{.ShortCommit}}
- -s -w
- -X github.com/groupe-edf/watchdog/internal/version.Version={{.Tag}}
- -X github.com/groupe-edf/watchdog/internal/version.BuildDate={{.Date}}
- -X github.com/groupe-edf/watchdog/internal/version.Commit={{.FullCommit}}
- -X github.com/groupe-edf/watchdog/internal/version.Sha={{.ShortCommit}}
goos:
- darwin
- linux
- windows
- darwin
- linux
- windows
goarch:
- amd64
- amd64
mod_timestamp: "{{ .CommitTimestamp }}"

changelog:
Expand All @@ -28,17 +33,17 @@ checksum:
dist: target

nfpms:
- homepage: https://github.com/groupe-edf/watchdog
maintainer: Habib MAALEM <habib.maalem@gmail.com>
description: Git server-side Custom Hooks
vendor: watchdog
license: GPL
formats:
- apk
- deb
- rpm
empty_folders:
- /var/log/watchdog
- homepage: https://github.com/groupe-edf/watchdog
maintainer: Habib MAALEM <habib.maalem@gmail.com>
description: Git server-side Custom Hooks
vendor: watchdog
license: GPL
formats:
- apk
- deb
- rpm
empty_folders:
- /var/log/watchdog

project_name: watchdog

Expand Down

0 comments on commit 94da258

Please sign in to comment.