|
| 1 | +steps: |
| 2 | + - wait |
| 3 | + |
| 4 | + - name: ":s3: Upload Oldstable Binaries to S3" |
| 5 | + command: ".buildkite/steps/publish-to-s3.sh" |
| 6 | + env: |
| 7 | + CODENAME: "oldstable" |
| 8 | + plugins: |
| 9 | + - aws-assume-role-with-web-identity#v1.4.0: |
| 10 | + role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-oldstable |
| 11 | + session-tags: |
| 12 | + - organization_slug |
| 13 | + - organization_id |
| 14 | + - pipeline_slug |
| 15 | + - build_branch |
| 16 | + - ecr#v2.7.0: |
| 17 | + login: true |
| 18 | + account-ids: "032379705303" |
| 19 | + - docker#v5.8.0: |
| 20 | + environment: |
| 21 | + - "AWS_ACCESS_KEY_ID" |
| 22 | + - "AWS_SECRET_ACCESS_KEY" |
| 23 | + - "AWS_SESSION_TOKEN" |
| 24 | + image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07" |
| 25 | + propagate-environment: true |
| 26 | + mount-buildkite-agent: true |
| 27 | + |
| 28 | + - name: ":octocat: :rocket: Create Github Release (if necessary)" |
| 29 | + skip: "TODO(v4 release): unskip when v3 no longer stable" |
| 30 | + command: ".buildkite/steps/github-release.sh" |
| 31 | + env: |
| 32 | + CODENAME: "oldstable" |
| 33 | + plugins: |
| 34 | + - aws-assume-role-with-web-identity#v1.4.0: |
| 35 | + role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-oldstable |
| 36 | + session-tags: |
| 37 | + - organization_slug |
| 38 | + - organization_id |
| 39 | + - pipeline_slug |
| 40 | + - build_branch |
| 41 | + - ecr#v2.7.0: |
| 42 | + login: true |
| 43 | + account-ids: "032379705303" |
| 44 | + - docker#v5.8.0: |
| 45 | + environment: |
| 46 | + - "AWS_ACCESS_KEY_ID" |
| 47 | + - "AWS_SECRET_ACCESS_KEY" |
| 48 | + - "AWS_SESSION_TOKEN" |
| 49 | + image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07" |
| 50 | + propagate-environment: true |
| 51 | + mount-buildkite-agent: true |
| 52 | + |
| 53 | + - name: ":redhat: Publish Oldstable RPM Package" |
| 54 | + command: ".buildkite/steps/publish-rpm-package.sh" |
| 55 | + env: |
| 56 | + CODENAME: "oldstable" |
| 57 | + RPM_S3_BUCKET: "yum.buildkite.com" |
| 58 | + plugins: |
| 59 | + - aws-assume-role-with-web-identity#v1.4.0: |
| 60 | + role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-oldstable |
| 61 | + session-tags: |
| 62 | + - organization_slug |
| 63 | + - organization_id |
| 64 | + - pipeline_slug |
| 65 | + - build_branch |
| 66 | + - docker#v5.8.0: |
| 67 | + environment: |
| 68 | + - "AWS_ACCESS_KEY_ID" |
| 69 | + - "AWS_SECRET_ACCESS_KEY" |
| 70 | + - "AWS_SESSION_TOKEN" |
| 71 | + image: "buildkite/agent:3.55.0-ubuntu" |
| 72 | + entrypoint: bash |
| 73 | + propagate-environment: true |
| 74 | + mount-buildkite-agent: true |
| 75 | + volumes: |
| 76 | + - "/yum.buildkite.com" |
| 77 | + retry: |
| 78 | + automatic: |
| 79 | + - exit_status: 1 |
| 80 | + limit: 3 |
| 81 | + |
| 82 | + - group: ":redhat: Publish Oldstable RPM Package to Buildkite Packages" |
| 83 | + steps: |
| 84 | + - name: ":redhat: Publish Oldstable {{matrix.pkg_arch}} RPM Package to Buildkite Packages" |
| 85 | + plugins: |
| 86 | + - publish-to-packages#v2.2.0: |
| 87 | + artifacts: "rpm/buildkite-agent_*_{{matrix.pkg_arch}}.rpm" |
| 88 | + registry: "buildkite/agent-rpm-oldstable" |
| 89 | + artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}" |
| 90 | + attestations: |
| 91 | + - "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json" |
| 92 | + - "buildkite-agent-rpm-packages.package-attestation.json" |
| 93 | + soft_fail: true |
| 94 | + matrix: |
| 95 | + setup: |
| 96 | + go_arch: |
| 97 | + - "amd64" |
| 98 | + - "386" |
| 99 | + - "arm64" |
| 100 | + - "ppc64" |
| 101 | + - "ppc64le" |
| 102 | + - "riscv64" |
| 103 | + pkg_arch: |
| 104 | + - "SKIP_FAKE_ARCH" |
| 105 | + adjustments: |
| 106 | + - with: { go_arch: "amd64", pkg_arch: "x86_64" } |
| 107 | + - with: { go_arch: "386", pkg_arch: "i386" } |
| 108 | + - with: { go_arch: "arm64", pkg_arch: "aarch64" } |
| 109 | + - with: { go_arch: "ppc64", pkg_arch: "ppc64" } |
| 110 | + - with: { go_arch: "ppc64le", pkg_arch: "ppc64le" } |
| 111 | + - with: { go_arch: "riscv64", pkg_arch: "riscv64" } |
| 112 | + - with: { pkg_arch: "SKIP_FAKE_ARCH" } |
| 113 | + skip: true |
| 114 | + |
| 115 | + - name: ":debian: Publish Oldstable Debian Package" |
| 116 | + command: ".buildkite/steps/publish-debian-package.sh" |
| 117 | + env: |
| 118 | + CODENAME: "oldstable" |
| 119 | + DEB_S3_BUCKET: "apt.buildkite.com/buildkite-agent" |
| 120 | + plugins: |
| 121 | + - aws-assume-role-with-web-identity#v1.4.0: |
| 122 | + role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-oldstable |
| 123 | + session-tags: |
| 124 | + - organization_slug |
| 125 | + - organization_id |
| 126 | + - pipeline_slug |
| 127 | + - build_branch |
| 128 | + - ecr#v2.7.0: |
| 129 | + login: true |
| 130 | + account-ids: "032379705303" |
| 131 | + - docker#v5.8.0: |
| 132 | + environment: |
| 133 | + - "AWS_ACCESS_KEY_ID" |
| 134 | + - "AWS_SECRET_ACCESS_KEY" |
| 135 | + - "AWS_SESSION_TOKEN" |
| 136 | + image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07" |
| 137 | + propagate-environment: true |
| 138 | + mount-buildkite-agent: true |
| 139 | + tmpfs: |
| 140 | + - "/root/.gnupg" |
| 141 | + |
| 142 | + - group: ":debian: Publish Oldstable Debian Package to Buildkite Packages" |
| 143 | + steps: |
| 144 | + - name: ":debian: Publish Oldstable {{matrix.pkg_arch}} Debian Package to Buildkite Packages" |
| 145 | + plugins: |
| 146 | + - publish-to-packages#v2.2.0: |
| 147 | + artifacts: "deb/buildkite-agent_*_{{matrix.pkg_arch}}.deb" |
| 148 | + registry: "buildkite/agent-deb-oldstable" |
| 149 | + artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}" |
| 150 | + attestations: |
| 151 | + - "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json" |
| 152 | + - "buildkite-agent-debian-packages.package-attestation.json" |
| 153 | + soft_fail: true |
| 154 | + matrix: |
| 155 | + setup: |
| 156 | + go_arch: |
| 157 | + - "amd64" |
| 158 | + - "386" |
| 159 | + - "arm" |
| 160 | + - "armhf" |
| 161 | + - "arm64" |
| 162 | + - "ppc64" |
| 163 | + - "ppc64le" |
| 164 | + - "riscv64" |
| 165 | + pkg_arch: |
| 166 | + - "SKIP_FAKE_ARCH" |
| 167 | + adjustments: |
| 168 | + - with: { go_arch: "amd64", pkg_arch: "x86_64" } |
| 169 | + - with: { go_arch: "386", pkg_arch: "i386" } |
| 170 | + - with: { go_arch: "arm", pkg_arch: "arm" } |
| 171 | + - with: { go_arch: "armhf", pkg_arch: "armhf" } |
| 172 | + - with: { go_arch: "arm64", pkg_arch: "arm64" } |
| 173 | + - with: { go_arch: "ppc64", pkg_arch: "ppc64" } |
| 174 | + - with: { go_arch: "ppc64le", pkg_arch: "ppc64el" } |
| 175 | + - with: { go_arch: "riscv64", pkg_arch: "riscv64" } |
| 176 | + - with: { pkg_arch: "SKIP_FAKE_ARCH" } |
| 177 | + skip: true |
| 178 | + |
| 179 | + - group: ":docker: Publish Oldstable Docker Images" |
| 180 | + steps: |
| 181 | + - name: ":docker: Publish Oldstable Images to {{matrix.registry}}" |
| 182 | + command: ".buildkite/steps/publish-docker-images.sh" |
| 183 | + env: |
| 184 | + CODENAME: "oldstable" |
| 185 | + REGISTRY: "{{matrix.registry}}" |
| 186 | + plugins: |
| 187 | + - aws-assume-role-with-web-identity#v1.4.0: |
| 188 | + role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-oldstable |
| 189 | + session-tags: |
| 190 | + - organization_slug |
| 191 | + - organization_id |
| 192 | + - pipeline_slug |
| 193 | + - build_branch |
| 194 | + - ecr#v2.7.0: |
| 195 | + login: true |
| 196 | + account-ids: "445615400570" |
| 197 | + matrix: |
| 198 | + setup: |
| 199 | + registry: |
| 200 | + - docker.io |
| 201 | + - ghcr.io |
| 202 | + - packages.buildkite.com |
| 203 | + adjustments: |
| 204 | + - with: { registry: "packages.buildkite.com" } |
| 205 | + soft_fail: true |
| 206 | + |
| 207 | + - wait |
| 208 | + |
| 209 | + - name: ":beer: Publish Oldstable Homebrew Package" |
| 210 | + skip: "TODO(v4 release): unskip when v3 no longer stable" |
| 211 | + command: ".buildkite/steps/release-homebrew.sh" |
| 212 | + artifact_paths: "pkg/*.rb;pkg/*.json" |
| 213 | + env: |
| 214 | + CODENAME: "oldstable" |
| 215 | + plugins: |
| 216 | + - aws-assume-role-with-web-identity#v1.4.0: |
| 217 | + role-arn: arn:aws:iam::032379705303:role/pipeline-buildkite-agent-release-oldstable |
| 218 | + session-tags: |
| 219 | + - organization_slug |
| 220 | + - organization_id |
| 221 | + - pipeline_slug |
| 222 | + - build_branch |
| 223 | + - ecr#v2.7.0: |
| 224 | + login: true |
| 225 | + account-ids: "032379705303" |
| 226 | + - docker#v5.8.0: |
| 227 | + environment: |
| 228 | + - "AWS_ACCESS_KEY_ID" |
| 229 | + - "AWS_SECRET_ACCESS_KEY" |
| 230 | + - "AWS_SESSION_TOKEN" |
| 231 | + image: "032379705303.dkr.ecr.us-east-1.amazonaws.com/deploytools:2022.07" |
| 232 | + propagate-environment: true |
| 233 | + mount-buildkite-agent: true |
0 commit comments