|
1 | 1 | steps: |
| 2 | + - wait |
| 3 | + |
| 4 | + - label: ":linux: x86_64" |
| 5 | + plugins: |
| 6 | + docker-compose#v3.7.0: |
| 7 | + config: .buildkite/docker-compose.yml |
| 8 | + run: agent |
| 9 | + mount-buildkite-agent: true |
| 10 | + command: .buildkite/steps/build-binary.sh |
| 11 | + env: |
| 12 | + GOOS: linux |
| 13 | + GOARCH: amd64 |
| 14 | + |
| 15 | + - label: ":linux: arm64" |
| 16 | + plugins: |
| 17 | + docker-compose#v3.7.0: |
| 18 | + config: .buildkite/docker-compose.yml |
| 19 | + run: agent |
| 20 | + mount-buildkite-agent: true |
| 21 | + command: .buildkite/steps/build-binary.sh |
| 22 | + env: |
| 23 | + GOOS: linux |
| 24 | + GOARCH: arm64 |
| 25 | + |
| 26 | + - label: ":windows: x86_64" |
| 27 | + plugins: |
| 28 | + docker-compose#v3.7.0: |
| 29 | + config: .buildkite/docker-compose.yml |
| 30 | + run: agent |
| 31 | + mount-buildkite-agent: true |
| 32 | + command: .buildkite/steps/build-binary.sh |
| 33 | + env: |
| 34 | + GOOS: windows |
| 35 | + GOARCH: amd64 |
| 36 | + |
| 37 | + # Requires golang 1.17 with support for windows/arm64 |
| 38 | + # https://tip.golang.org/doc/go1.17 |
| 39 | + # https://github.com/golang/go/issues/36439 |
| 40 | + # - label: ":windows: arm64" |
| 41 | + # plugins: |
| 42 | + # docker-compose#v3.7.0: |
| 43 | + # config: .buildkite/docker-compose.yml |
| 44 | + # run: agent |
| 45 | + # mount-buildkite-agent: true |
| 46 | + # command: .buildkite/steps/build-binary.sh |
| 47 | + # env: |
| 48 | + # GOOS: windows |
| 49 | + # GOARCH: arm64 |
| 50 | + |
| 51 | + - label: ":mac: x86_64" |
| 52 | + plugins: |
| 53 | + docker-compose#v3.7.0: |
| 54 | + config: .buildkite/docker-compose.yml |
| 55 | + run: agent |
| 56 | + mount-buildkite-agent: true |
| 57 | + command: .buildkite/steps/build-binary.sh |
| 58 | + env: |
| 59 | + GOOS: darwin |
| 60 | + GOARCH: amd64 |
| 61 | + |
| 62 | + - label: ":mac: arm64" |
| 63 | + plugins: |
| 64 | + docker-compose#v3.7.0: |
| 65 | + config: .buildkite/docker-compose.yml |
| 66 | + run: agent |
| 67 | + mount-buildkite-agent: true |
| 68 | + command: .buildkite/steps/build-binary.sh |
| 69 | + env: |
| 70 | + GOOS: darwin |
| 71 | + GOARCH: arm64 |
| 72 | + |
| 73 | + - wait |
| 74 | + |
2 | 75 | - label: ":bash: :hammer:" |
3 | 76 | plugins: |
4 | 77 | docker-compose#v2.2.0: |
5 | 78 | run: tests |
6 | 79 |
|
7 | 80 | - label: "㊙️ git-credentials test" |
8 | 81 | command: .buildkite/test_credentials.sh |
| 82 | + |
| 83 | + - wait |
| 84 | + |
| 85 | + - block: ":git: tag?" |
| 86 | + prompt: "Tag this commit and attach binaries to a GitHub release?" |
| 87 | + fields: |
| 88 | + - text: "Version" |
| 89 | + hint: "The git tag to create e.g. v2.1.0" |
| 90 | + key: "version" |
| 91 | + branches: |
| 92 | + - master |
| 93 | + |
| 94 | + - name: ":octocat: :rocket:" |
| 95 | + command: ".buildkite/steps/github-release.sh" |
| 96 | + branches: |
| 97 | + - master |
| 98 | + agents: |
| 99 | + queue: "deploy" |
| 100 | + plugins: |
| 101 | + - ecr#v2.0.0: |
| 102 | + login: true |
| 103 | + account-ids: "032379705303" |
| 104 | + - docker#v3.5.0: |
| 105 | + image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2020.03" |
| 106 | + propagate-environment: true |
0 commit comments