Repository navigation
Expand file tree
/
Copy path.goreleaser.yml
More file actions
140 lines (130 loc) · 3.29 KB
/
Copy path.goreleaser.yml
File metadata and controls
140 lines (130 loc) · 3.29 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2
force_token: github
before:
hooks:
- go mod download
# We generate the flag file in the before hook, so that we can use it in blobs section
- sh -c "echo {{ .Version }} > scw-cli-v2-version"
builds:
- id: binaries
env:
- CGO_ENABLED=0
main: ./cmd/scw/main.go
binary: scaleway-cli
goos:
- freebsd
- linux
- windows
- darwin
goarch:
- 386
- amd64
- arm64
ignore:
- goos: darwin
goarch: 386
flags:
- -tags=timetzdata
- -trimpath
ldflags:
- -s
- -w
- -extldflags "-static"
- -X main.Version={{ .Version }}
- -X main.BuildDate={{ .Date }}
- -X main.GitBranch={{ .Branch }}
- -X main.GitCommit={{ .ShortCommit }}
archives:
- formats: [binary]
nfpms:
- formats: [deb, rpm]
maintainer: Scaleway Devtools <opensource@scaleway.com>
checksum:
name_template: 'SHA256SUMS'
algorithm: sha256
changelog:
use: github
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
dockers_v2:
- images:
- "scaleway/cli"
tags:
- "latest"
- "{{ .Tag }}"
- "{{ .Major }}"
- "{{ .Major }}.{{ .Minor }}"
- "{{ .Version }}"
platforms:
- linux/amd64
- linux/arm64
sbom: true
build_args:
VERSION: "{{ .Version }}"
labels:
io.modelcontextprotocol.server.name: "io.github.scaleway/scaleway-mcp"
mcp:
name: "io.github.scaleway/scaleway-mcp"
title: "Scaleway MCP server"
description: "Scaleway MCP server for interacting with the Scaleway APIs"
homepage: "https://cli.scaleway.com/"
auth:
type: github-oidc
token: "{{ .Env.GITHUB_TOKEN }}"
repository:
url: "https://github.com/scaleway/scaleway-cli"
source: github
id: "32575663"
subfolder: internal/namespaces/mcp
packages:
- registry_type: oci
identifier: "scaleway/cli:{{ .Version }}"
transport:
type: stdio
release:
github:
owner: scaleway
name: scaleway-cli
# If set to auto, will mark the release as not ready for production
# in case there is an indicator for this in the tag e.g. v1.0.0-rc1
# If set to true, will mark the release as not ready for production.
prerelease: auto
draft: true
name_template: "{{ .Tag }}"
winget:
- name: cli
publisher: Scaleway SAS
short_description: Command Line Interface for Scaleway
package_identifier: "Scaleway.cli"
license: Apache-2.0
author: Scaleway
copyright: Copyright (c) Scaleway SAS
publisher_url: https://www.scaleway.com/en/
publisher_support_url: https://www.scaleway.com/en/docs/
license_url: https://github.com/scaleway/scaleway-cli/blob/main/LICENSE
release_notes_url: https://github.com/scaleway/scaleway-cli/releases/tag/{{ .Tag }}
release_notes: "{{ .Changelog }}"
skip_upload: auto
repository:
owner: scaleway
name: winget-pkgs
branch: "{{ .ProjectName }}-{{ .Version }}"
token: "{{ .Env.WINGET_TOKEN }}"
pull_request:
enabled: true
draft: false
base:
owner: microsoft
name: winget-pkgs
branch: master
tags:
- golang
- cli
- go
- scaleway
- scaleway-cli
- scw