-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Peefy/add-brew-and-scoop-template
feat: add homebrew, scoop and docker releases
- Loading branch information
Showing
4 changed files
with
91 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,3 +30,65 @@ archives: | |
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
||
dockers: | ||
- use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- kcllang/kclcli:{{ .Tag }} | ||
build_flag_templates: | ||
- "--target=goreleaser" | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.name={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source={{.GitURL}}" | ||
- "--platform=linux/amd64" | ||
|
||
docker_manifests: | ||
- use: docker | ||
name_template: kcllang/kcl:{{ .Tag }} | ||
image_templates: | ||
- kcllang/kcl:{{ .Tag }}-amd64 | ||
- use: docker | ||
name_template: kcllang/kcl:latest | ||
image_templates: | ||
- kcllang/kcl:{{ .Tag }}-amd64 | ||
|
||
brews: | ||
- tap: | ||
owner: kcl-lang | ||
name: homebrew-tap | ||
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}" | ||
download_strategy: CurlDownloadStrategy | ||
# Git author used to commit to the repository. | ||
# Defaults are shown. | ||
commit_author: | ||
name: GoReleaser Bot | ||
email: [email protected] | ||
folder: HomebrewFormula | ||
homepage: "https://github.com/kcl-lang/kcl" | ||
description: "KCL Command Line Interface" | ||
license: "Apache License" | ||
skip_upload: false | ||
test: | | ||
system "#{bin}/kcl version" | ||
scoop: | ||
url_template: "https://github.com/kcl-lang/cli/releases/download/{{ .Tag }}/kcl-v{{ .Version }}-{{ .Os }}-{{ .Arch }}" | ||
bucket: | ||
owner: kcl-lang | ||
name: scoop-bucket | ||
branch: main | ||
token: "{{ .Env.GITHUB_TOKEN }}" | ||
folder: Scoops | ||
commit_author: | ||
name: goreleaserbot | ||
email: [email protected] | ||
commit_msg_template: "Scoop update for kcl version {{ .Tag }}" | ||
homepage: "http://github.com/kcl-lang/kcl" | ||
description: "KCL Command Line Interface" | ||
license: Apache License 2.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM golang:1.19 AS build | ||
COPY / /src | ||
WORKDIR /src | ||
RUN --mount=type=cache,target=/go/pkg --mount=type=cache,target=/root/.cache/go-build make build | ||
|
||
FROM ubuntu:22.04 AS base | ||
ENV LANG=en_US.utf8 | ||
|
||
FROM base | ||
COPY --from=build /src/bin/kcl /usr/local/bin/kcl | ||
RUN /usr/local/bin/kcl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters