Skip to content

Commit

Permalink
build: update goreleaser configuration files
Browse files Browse the repository at this point in the history
  • Loading branch information
rluisr committed Jul 5, 2024
1 parent adb5f30 commit a268380
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: release
on:
push:
tags:
- '*'
- "*"

jobs:
binary_release:
Expand All @@ -13,21 +13,20 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
go-version-file: "go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}

container_release:
name: Container Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
Expand Down
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ builds:
goarm:
- "7"
archives:
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
release:
github:
owner: rluisr
name: mysqlrouter_exporter
prerelease: auto
prerelease: false

0 comments on commit a268380

Please sign in to comment.