This repository has been archived by the owner on Mar 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Combine intel & arm builds into one universal binary - Notarize it with Apple, only if building on macOS and secrets set - Split goreleaser for binaries vs docker - Build docker tags still on buildjet - Build release binaries/archives on a github macOS runner because notarizing needs macOS - Publish homebrew update - Small chance it even actually works
- Loading branch information
Showing
7 changed files
with
242 additions
and
96 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--ignore-dir=docs/build |
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
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,10 @@ | ||
source = ["releases/mac_darwin_all/acorn"] | ||
bundle_id = "io.acorn.cli" | ||
|
||
sign { | ||
application_identity = "Developer ID Application: Acorn Labs, Inc. (K5HKMU4T9S)" | ||
} | ||
|
||
zip { | ||
output_path = "releases/mac_darwin_all/acorn.zip" | ||
} |
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,78 @@ | ||
dist: releases | ||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
goos: | ||
- linux | ||
goarch: | ||
- amd64 | ||
ldflags: | ||
- -s | ||
- -w | ||
- -X "github.com/acorn-io/acorn/pkg/version.Tag=v{{ .Version }}" | ||
# The docker build don't actually use the binaries generated here, so just build something | ||
dockers: | ||
- use: buildx | ||
goos: linux | ||
goarch: amd64 | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-amd64 | ||
build_flag_templates: | ||
- "--target=goreleaser" | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source=https://github.com/acorn-io/acorn" | ||
- "--platform=linux/amd64" | ||
- use: buildx | ||
goos: linux | ||
goarch: arm64 | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-arm64 | ||
build_flag_templates: | ||
- "--target=goreleaser" | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source=https://github.com/acorn-io/acorn" | ||
- "--platform=linux/arm64" | ||
- use: buildx | ||
goos: linux | ||
goarch: arm | ||
goarm: "7" | ||
dockerfile: Dockerfile | ||
image_templates: | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-arm32v7 | ||
build_flag_templates: | ||
- "--target=goreleaser" | ||
- "--pull" | ||
- "--label=org.opencontainers.image.created={{.Date}}" | ||
- "--label=org.opencontainers.image.title={{.ProjectName}}" | ||
- "--label=org.opencontainers.image.revision={{.FullCommit}}" | ||
- "--label=org.opencontainers.image.version={{.Version}}" | ||
- "--label=org.opencontainers.image.source=https://github.com/acorn-io/acorn" | ||
- "--platform=linux/arm/v7" | ||
docker_manifests: | ||
- use: docker | ||
name_template: ghcr.io/acorn-io/acorn:v{{ .Version }} | ||
image_templates: | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-amd64 | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-arm64 | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-arm32v7 | ||
- use: docker | ||
name_template: ghcr.io/acorn-io/acorn:latest | ||
image_templates: | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-amd64 | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-arm64 | ||
- ghcr.io/acorn-io/acorn:v{{ .Version }}-arm32v7 | ||
docker_signs: | ||
- artifacts: all | ||
stdin: "{{ .Env.COSIGN_PASSWORD }}" | ||
snapshot: | ||
name_template: '{{ trimprefix .Summary "v" }}' |
Oops, something went wrong.