Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Build

on:
push:
branches: ["*"]
branches: ["**"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to ask: what is the difference when compared to the single asterisk? 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A single asterisk would skip branch names with / (and maybe more). ** is for all branches.


jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ jobs:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASS }}
- name: Release
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
version: latest
args: release
args: release --clean
- name: "Configure AWS Credentials"
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
14 changes: 5 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

builds:
- env:
- CGO_ENABLED=0
Expand All @@ -7,24 +9,18 @@ builds:
- darwin
ldflags:
- -s -w -X github.com/codacy/pulse-event-cli/internal/build.Version={{.Version}} -X github.com/codacy/pulse-event-cli/internal/build.Date={{time "2006-01-02"}}
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
version_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
dockers:
- image_templates:
dockers_v2:
- images:
- "codacy/pulse-event-cli:{{ .Tag }}"
- "codacy/pulse-event-cli:v{{ .Major }}"
- "codacy/pulse-event-cli:v{{ .Major }}.{{ .Minor }}"
Expand Down