forked from oras-project/oras
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yml
42 lines (40 loc) · 1.36 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
version: 2
project_name: oras-macos-vz
gitlab_urls:
api: "{{ .Env.CI_API_V4_URL }}"
download: "{{ .Env.CI_SERVER_URL }}"
skip_tls_verify: true
use_package_registry: true
use_job_token: true
builds:
- main: ./cmd/oras
binary: ./oras-macos-vz
env:
- CGO_ENABLED=0
flags:
- -trimpath
goos:
- darwin
goarch:
- arm64
ldflags:
# one-line ldflags to bypass the goreleaser bugs
# the git tree state is guaranteed to be clean by goreleaser
# version will be kept as is from the forked original
- -w -s -buildid= -X oras.land/oras/internal/version.GitCommit={{ .Env.CI_COMMIT_SHA }} -X oras.land/oras/internal/version.BuildMetadata="{{ .Env.CI_COMMIT_REF_NAME }}-macos-vz" -X oras.land/oras/internal/version.GitTreeState=clean
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- format: tar.gz
files:
- LICENSE
brews:
- name: oras-macos-vz
repository:
owner: tools
name: homebrew-core
token: "{{ .Env.GITLAB_PUBLISH_TOKEN }}"
directory: Formula
url_template: "{{ .Env.BREW_BASE_URL }}/?owner={{ .Env.CI_PROJECT_ROOT_NAMESPACE }}&repo={{ .Env.CI_PROJECT_NAME }}&provider=gitlab&tag={{ .Tag }}&artifact_name={{ .ArtifactName }}"
homepage: "{{ .Env.CI_PROJECT_URL }}"
description: "MacOS Virtualization OCI registry client - managing macOS Virtual Machine images in the macOS Virtualization Kubelet format"
skip_upload: false