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
6 changes: 4 additions & 2 deletions .github/workflows/goreleaser-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
# `goreleaser check` only parses the config; it needs neither Go nor
# git history.
- name: Check GoReleaser config
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v7
with:
version: latest
# Pinned: GoReleaser v2.10+ deprecates `brews`, which fails
# `goreleaser check`. Unpin after moving to `homebrew_casks`.
version: v2.9.0
args: check
5 changes: 3 additions & 2 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@ jobs:
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
uses: goreleaser/goreleaser-action@v7
with:
version: latest
# Keep in sync with the version in goreleaser-check.yml.
version: v2.9.0
# We use a different goreleaser config for releasing a new latest version vs.
# releasing a patch on an older version. For releasing the new latest version,
# we want to update the main (unversioned) Homebrew formula. For releasing a
Expand Down
9 changes: 5 additions & 4 deletions .goreleaser-patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# the Homebrew tap and does not publish a "latest" image to Docker Hub. It should match
# .goreleaser.yml in every way except for the brews.name template and the
# dockers.image_templates list.
version: 2
dist: release
env:
- GO111MODULE=on
Expand All @@ -27,22 +28,22 @@ builds:
- arm64
archives:
- id: tarball
format: tar.gz
formats: tar.gz
- id: bin
format: binary
formats: binary
wrap_in_directory: false
name_template: "src_{{ .Os }}_{{ .Arch }}"
brews:
-
name: src-cli@{{ .Major }}.{{ .Minor }}.{{ .Patch }}
homepage: "https://sourcegraph.com/"
description: "Sourcegraph CLI"
tap:
repository:
owner: sourcegraph
name: homebrew-src-cli
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
directory: Formula
# We need to set this so that goreleaser doesn't think the binary is called
# `src-cli`
install: |
Expand Down
5 changes: 3 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# release. It updates the main formula in the Homebrew tap. It should match
# .goreleaser-patch.yml in every way except for the brews.name template and the
# dockers.image_templates list.
version: 2
dist: release
env:
- GO111MODULE=on
Expand All @@ -26,9 +27,9 @@ builds:
- arm64
archives:
- id: tarball
format: tar.gz
formats: tar.gz
- id: bin
format: binary
formats: binary
wrap_in_directory: false
name_template: "src_{{ .Os }}_{{ .Arch }}"
brews:
Expand Down
9 changes: 9 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,14 @@
"extends": [
"github>sourcegraph/renovate-config"
],
"packageRules": [
{
"description": "GoReleaser v2.10+ deprecates brews, which fails goreleaser check. Remove after moving to homebrew_casks.",
"matchPackageNames": [
"goreleaser/goreleaser"
],
"allowedVersions": "<2.10.0"
}
],
"semanticCommits": false
}
Loading