| # Licensed to the Apache Software Foundation (ASF) under one |
| # or more contributor license agreements. See the NOTICE file |
| # distributed with this work for additional information |
| # regarding copyright ownership. The ASF licenses this file |
| # to you under the Apache License, Version 2.0 (the |
| # "License"); you may not use this file except in compliance |
| # with the License. You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, |
| # software distributed under the License is distributed on an |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| # KIND, either express or implied. See the License for the |
| # specific language governing permissions and limitations |
| # under the License. |
| |
| before: |
| hooks: |
| - go mod download |
| - go mod tidy |
| builds: |
| - env: |
| - CGO_ENABLED=0 |
| mod_timestamp: '{{ .CommitTimestamp }}' |
| flags: |
| - -trimpath |
| ldflags: |
| - '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}' |
| goos: |
| - linux |
| - darwin |
| - windows |
| - freebsd |
| - openbsd |
| goarch: |
| - amd64 |
| - '386' |
| - arm64 |
| - arm |
| ignore: |
| - goos: darwin |
| goarch: '386' |
| - goos: openbsd |
| goarch: arm |
| - goos: openbsd |
| goarch: arm64 |
| binary: '{{ .ProjectName }}_v{{ .Version }}' |
| archives: |
| - format: zip |
| name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}' |
| checksum: |
| name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS' |
| algorithm: sha256 |
| signs: |
| - artifacts: checksum |
| args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"] |
| release: |
| disable: false |
| github: |
| owner: cloudstack |
| name: terraform-provider-cloudstack |
| changelog: |
| skip: true |