|
| 1 | +project_name: mesheryctl |
| 2 | +version: 2 |
| 3 | +before: |
| 4 | + hooks: |
| 5 | + # you may remove this if you don't use vgo |
| 6 | + - go mod tidy |
| 7 | + # you may remove this if you don't need go generate |
| 8 | + # - go generate ./... |
| 9 | +builds: |
| 10 | +- main: ./mesheryctl/cmd/mesheryctl/main.go |
| 11 | + |
| 12 | + env: |
| 13 | + - CGO_ENABLED=0 |
| 14 | + |
| 15 | + ldflags: |
| 16 | + - -s -w -X github.com/layer5io/meshery/mesheryctl/internal/cli/root/constants.version={{.Tag}} |
| 17 | + - -s -w -X github.com/layer5io/meshery/mesheryctl/internal/cli/root/constants.commitsha={{.ShortCommit}} |
| 18 | + - -s -w -X github.com/layer5io/meshery/mesheryctl/internal/cli/root/constants.releasechannel={{.Env.RELEASE_CHANNEL}} |
| 19 | + # GOOS list to build for. |
| 20 | + # For more info refer to: https://golang.org/doc/install/source#environment |
| 21 | + # Defaults are darwin and linux. |
| 22 | + goos: |
| 23 | + - darwin |
| 24 | + - linux |
| 25 | + - windows |
| 26 | + |
| 27 | + # # GOARCH to build for. |
| 28 | + # # For more info refer to: https://golang.org/doc/install/source#environment |
| 29 | + # # Defaults are 386 and amd64. |
| 30 | + goarch: |
| 31 | + - 386 |
| 32 | + - amd64 |
| 33 | + - arm |
| 34 | + - arm64 |
| 35 | + |
| 36 | + # List of combinations of GOOS + GOARCH + GOARM to ignore. |
| 37 | + ignore: |
| 38 | + - goos: windows |
| 39 | + goarch: arm |
| 40 | + - goos: windows |
| 41 | + goarch: arm64 |
| 42 | + |
| 43 | +archives: |
| 44 | + - id: stable |
| 45 | + name_template: >- |
| 46 | + {{ .ProjectName }}_{{.Version}}_ |
| 47 | + {{- title .Os }}_ |
| 48 | + {{- if eq .Arch "amd64" }}x86_64 |
| 49 | + {{- else if eq .Arch "386" }}i386 |
| 50 | + {{- else }}{{ .Arch }}{{ end }} |
| 51 | + # darwin: Darwin |
| 52 | + # linux: Linux |
| 53 | + # windows: Windows |
| 54 | + # 386: i386 |
| 55 | + # amd64: x86_64 |
| 56 | + format: tar.gz |
| 57 | + format_overrides: |
| 58 | + - goos: windows |
| 59 | + format: zip |
| 60 | + # files: |
| 61 | + # - setup_scripts/* |
| 62 | + |
| 63 | +checksum: |
| 64 | + name_template: 'checksums.txt' |
| 65 | +snapshot: |
| 66 | + version_template: "{{ .Tag }}-next" |
| 67 | +changelog: |
| 68 | + sort: asc |
| 69 | + filters: |
| 70 | + exclude: |
| 71 | + - '^docs:' |
| 72 | + - '^test:' |
| 73 | + |
| 74 | +release: |
| 75 | + # Repo in which the release will be created. |
| 76 | + # Default is extracted from the origin remote URL. |
| 77 | + # Note: it can only be one: either github or gitlab or gitea |
| 78 | + # github: |
| 79 | + # owner: user |
| 80 | + # name: repo |
| 81 | + |
| 82 | + # IDs of the archives to use. |
| 83 | + # Defaults to all. |
| 84 | + # ids: |
| 85 | + # - foo |
| 86 | + # - bar |
| 87 | + |
| 88 | + # If set to true, will not auto-publish the release. |
| 89 | + # Default is false. |
| 90 | + # draft: true |
| 91 | + |
| 92 | + # If set to auto, will mark the release as not ready for production |
| 93 | + # in case there is an indicator for this in the tag e.g. v1.0.0-rc1 |
| 94 | + # If set to true, will mark the release as not ready for production. |
| 95 | + # Default is false. |
| 96 | + # prerelease: auto |
| 97 | + |
| 98 | + # You can change the name of the GitHub release. |
| 99 | + # Default is `{{.Tag}}` |
| 100 | + name_template: "Meshery {{.Tag}}" |
| 101 | + |
| 102 | +# Extending the GoRelease to publish app manifest to scoop-bucket repository for Meshery |
| 103 | +scoops: |
| 104 | + # Template for the url which is determined by the given Token (github or gitlab) |
| 105 | + # Default for github is "https://github.com/<repo_owner>/<repo_name>/releases/download/{{ .Tag }}/{{ .ArtifactName }}" |
| 106 | + # Default for gitlab is "https://gitlab.com/<repo_owner>/<repo_name>/uploads/{{ .ArtifactUploadHash }}/{{ .ArtifactName }}" |
| 107 | + # Gitea is not supported yet, but the support coming |
| 108 | + # url_template: "http://github.mycompany.com/foo/bar/releases/{{ .Tag }}/{{ .ArtifactName }}" |
| 109 | + |
| 110 | + # Repository to push the app manifest to. |
| 111 | + - repository: |
| 112 | + owner: meshery |
| 113 | + name: scoop-bucket |
| 114 | + |
| 115 | + # Git author used to commit to the repository. |
| 116 | + # Defaults are shown. |
| 117 | + commit_author: |
| 118 | + name: mesheryctl releaser |
| 119 | + |
| 120 | + |
| 121 | + # Your app's homepage. |
| 122 | + # Default is empty. |
| 123 | + homepage: "https://meshery.io" |
| 124 | + |
| 125 | + # Your app's description. |
| 126 | + # Default is empty. |
| 127 | + description: "The Cloud Native Management Plane." |
| 128 | + |
| 129 | + # Your app's license |
| 130 | + # Default is empty. |
| 131 | + license: Apache 2.0 |
| 132 | + |
| 133 | + # Persist data between application updates |
| 134 | + # persist: |
| 135 | + # - "data" |
| 136 | + # - "config.toml" |
0 commit comments