|
| 1 | +# Copyright (c) 2021 Gemba Advantage |
| 2 | +# |
| 3 | +# Permission is hereby granted, free of charge, to any person obtaining a copy |
| 4 | +# of this software and associated documentation files (the "Software"), to deal |
| 5 | +# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 6 | +# in the Software without restriction, including without limitation the rights |
| 7 | +# copies of the Software, and to permit persons to whom the Software is |
| 8 | +# furnished to do so, subject to the following conditions: |
| 9 | +# |
| 10 | +# The above copyright notice and this permission notice shall be included in all |
| 11 | +# copies or substantial portions of the Software. |
| 12 | +# |
| 13 | +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 14 | +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 15 | +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 16 | +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 17 | +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 18 | +# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 19 | +# SOFTWARE. |
| 20 | + |
| 21 | +builds: |
| 22 | + - id: git-remote-codecommit |
| 23 | + main: ./cmd/grc |
| 24 | + binary: git-remote-codecommit |
| 25 | + ldflags: |
| 26 | + - -s -w |
| 27 | + - -X github.com/gembaadvantage/git-remote-codecommit/internal/version.version={{.Tag}} |
| 28 | + - -X github.com/gembaadvantage/git-remote-codecommit/internal/version.gitCommit={{.Commit}} |
| 29 | + - -X github.com/gembaadvantage/git-remote-codecommit/internal/version.gitBranch=main |
| 30 | + - -X github.com/gembaadvantage/git-remote-codecommit/internal/version.buildDate={{.Date}} |
| 31 | + env: |
| 32 | + - CGO_ENABLED=0 |
| 33 | + goos: |
| 34 | + - linux |
| 35 | + - darwin |
| 36 | + - windows |
| 37 | + goarch: |
| 38 | + - amd64 |
| 39 | + - 386 |
| 40 | + - arm |
| 41 | + - arm64 |
| 42 | + - ppc64le |
| 43 | + goarm: |
| 44 | + - 7 |
| 45 | + ignore: |
| 46 | + - goos: darwin |
| 47 | + goarch: 386 |
| 48 | +archives: |
| 49 | + - id: git-remote-codecommit-archive |
| 50 | + format: tar.gz |
| 51 | + name_template: |- |
| 52 | + {{ .ProjectName }}_{{ .Tag }}_{{ .Os }}-{{ .Arch }} |
| 53 | + builds: |
| 54 | + - git-remote-codecommit |
| 55 | + replacements: |
| 56 | + 386: i386 |
| 57 | + amd64: x86_64 |
| 58 | + format_overrides: |
| 59 | + - goos: windows |
| 60 | + format: zip |
| 61 | + files: |
| 62 | + - README.md |
| 63 | + - LICENSE |
| 64 | +signs: |
| 65 | + - artifacts: checksum |
| 66 | +brews: |
| 67 | + - name: git-remote-codecommit |
| 68 | + tap: |
| 69 | + owner: gembaadvantage |
| 70 | + name: homebrew-tap |
| 71 | + folder: Formula |
| 72 | + homepage: "https://github.com/gembaadvantage/git-remote-codecommit" |
| 73 | + description: "Semantic versioning the easy way" |
| 74 | + license: MIT |
| 75 | + install: | |
| 76 | + bin.install "git-remote-codecommit" |
| 77 | + test: | |
| 78 | + installed_version = shell_output("#{bin}/git-remote-codecommit version --short 2>&1") |
| 79 | + assert_match "v#{version}", installed_version |
| 80 | +scoop: |
| 81 | + bucket: |
| 82 | + owner: gembaadvantage |
| 83 | + name: scoops |
| 84 | + homepage: "https://github.com/gembaadvantage/git-remote-codecommit" |
| 85 | + description: "Semantic versioning the easy way" |
| 86 | + license: MIT |
0 commit comments