Skip to content

Commit

Permalink
[PKG-7630] Publish packages with attestations to Buildkite Packages (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacsu authored Oct 1, 2024
1 parent 2f762cd commit 3709603
Show file tree
Hide file tree
Showing 4 changed files with 208 additions and 46 deletions.
82 changes: 68 additions & 14 deletions .buildkite/pipeline.release-experimental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,38 @@ steps:
volumes:
- "/yum.buildkite.com"

- name: ":redhat: Publish Edge RPM Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.0.0:
artifacts: "rpm/*.rpm"
registry: "buildkite/agent-rpm-experimental"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
soft_fail: true
- group: ":redhat: Publish Edge RPM Package to Buildkite Packages"
steps:
- name: ":redhat: Publish Edge {{matrix.pkg_arch}} RPM Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.2.0:
artifacts: "rpm/buildkite-agent_*_{{matrix.pkg_arch}}.rpm"
registry: "buildkite/agent-rpm-experimental"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
attestations:
- "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json"
- "buildkite-agent-rpm-packages.package-attestation.json"
soft_fail: true
matrix:
setup:
go_arch:
- "amd64"
- "386"
- "arm64"
- "ppc64"
- "ppc64le"
- "riscv64"
pkg_arch:
- "SKIP_FAKE_ARCH"
adjustments:
- with: { go_arch: "amd64", pkg_arch: "x86_64" }
- with: { go_arch: "386", pkg_arch: "i386" }
- with: { go_arch: "arm64", pkg_arch: "aarch64" }
- with: { go_arch: "ppc64", pkg_arch: "ppc64" }
- with: { go_arch: "ppc64le", pkg_arch: "ppc64le" }
- with: { go_arch: "riscv64", pkg_arch: "riscv64" }
- with: { pkg_arch: "SKIP_FAKE_ARCH" }
skip: true

- name: ":debian: Publish Edge Debian Package"
command: ".buildkite/steps/publish-debian-package.sh"
Expand Down Expand Up @@ -74,13 +99,42 @@ steps:
- exit_status: 1
limit: 3

- name: ":debian: Publish Edge Debian Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.0.0:
artifacts: "deb/*.deb"
registry: "buildkite/agent-deb-experimental"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
soft_fail: true
- group: ":debian: Publish Edge Debian Package to Buildkite Packages"
steps:
- name: ":debian: Publish Edge {{matrix.pkg_arch}} Debian Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.2.0:
artifacts: "deb/buildkite-agent_*_{{matrix.pkg_arch}}.deb"
registry: "buildkite/agent-deb-experimental"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
attestations:
- "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json"
- "buildkite-agent-debian-packages.package-attestation.json"
soft_fail: true
matrix:
setup:
go_arch:
- "amd64"
- "386"
- "arm"
- "armhf"
- "arm64"
- "ppc64"
- "ppc64le"
- "riscv64"
pkg_arch:
- "SKIP_FAKE_ARCH"
adjustments:
- with: { go_arch: "amd64", pkg_arch: "x86_64" }
- with: { go_arch: "386", pkg_arch: "i386" }
- with: { go_arch: "arm", pkg_arch: "arm" }
- with: { go_arch: "armhf", pkg_arch: "armhf" }
- with: { go_arch: "arm64", pkg_arch: "arm64" }
- with: { go_arch: "ppc64", pkg_arch: "ppc64" }
- with: { go_arch: "ppc64le", pkg_arch: "ppc64el" }
- with: { go_arch: "riscv64", pkg_arch: "riscv64" }
- with: { pkg_arch: "SKIP_FAKE_ARCH" }
skip: true

- name: ":docker: Publish Edge Docker Images"
command: ".buildkite/steps/publish-docker-images.sh"
Expand Down
82 changes: 68 additions & 14 deletions .buildkite/pipeline.release-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,38 @@ steps:
- exit_status: 1
limit: 3

- name: ":redhat: Publish RPM Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.0.0:
artifacts: "rpm/*.rpm"
registry: "buildkite/agent-rpm"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
soft_fail: true
- group: ":redhat: Publish RPM Package to Buildkite Packages"
steps:
- name: ":redhat: Publish {{matrix.pkg_arch}} RPM Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.2.0:
artifacts: "rpm/buildkite-agent_*_{{matrix.pkg_arch}}.rpm"
registry: "buildkite/agent-rpm"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
attestations:
- "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json"
- "buildkite-agent-rpm-packages.package-attestation.json"
soft_fail: true
matrix:
setup:
go_arch:
- "amd64"
- "386"
- "arm64"
- "ppc64"
- "ppc64le"
- "riscv64"
pkg_arch:
- "SKIP_FAKE_ARCH"
adjustments:
- with: { go_arch: "amd64", pkg_arch: "x86_64" }
- with: { go_arch: "386", pkg_arch: "i386" }
- with: { go_arch: "arm64", pkg_arch: "aarch64" }
- with: { go_arch: "ppc64", pkg_arch: "ppc64" }
- with: { go_arch: "ppc64le", pkg_arch: "ppc64le" }
- with: { go_arch: "riscv64", pkg_arch: "riscv64" }
- with: { pkg_arch: "SKIP_FAKE_ARCH" }
skip: true

- name: ":debian: Publish Debian Package"
command: ".buildkite/steps/publish-debian-package.sh"
Expand All @@ -98,13 +123,42 @@ steps:
tmpfs:
- "/root/.gnupg"

- name: ":debian: Publish Debian Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.0.0:
artifacts: "deb/*.deb"
registry: "buildkite/agent-deb"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
soft_fail: true
- group: ":debian: Publish Debian Package to Buildkite Packages"
steps:
- name: ":debian: Publish {{matrix.pkg_arch}} Debian Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.2.0:
artifacts: "deb/buildkite-agent_*_{{matrix.pkg_arch}}.deb"
registry: "buildkite/agent-deb"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
attestations:
- "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json"
- "buildkite-agent-debian-packages.package-attestation.json"
soft_fail: true
matrix:
setup:
go_arch:
- "amd64"
- "386"
- "arm"
- "armhf"
- "arm64"
- "ppc64"
- "ppc64le"
- "riscv64"
pkg_arch:
- "SKIP_FAKE_ARCH"
adjustments:
- with: { go_arch: "amd64", pkg_arch: "x86_64" }
- with: { go_arch: "386", pkg_arch: "i386" }
- with: { go_arch: "arm", pkg_arch: "arm" }
- with: { go_arch: "armhf", pkg_arch: "armhf" }
- with: { go_arch: "arm64", pkg_arch: "arm64" }
- with: { go_arch: "ppc64", pkg_arch: "ppc64" }
- with: { go_arch: "ppc64le", pkg_arch: "ppc64el" }
- with: { go_arch: "riscv64", pkg_arch: "riscv64" }
- with: { pkg_arch: "SKIP_FAKE_ARCH" }
skip: true

- name: ":docker: Publish Docker Images"
command: ".buildkite/steps/publish-docker-images.sh"
Expand Down
82 changes: 68 additions & 14 deletions .buildkite/pipeline.release-unstable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,38 @@ steps:
- exit_status: 1
limit: 3

- name: ":redhat: Publish Unstable RPM Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.0.0:
artifacts: "rpm/*.rpm"
registry: "buildkite/agent-rpm-unstable"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
soft_fail: true
- group: ":redhat: Publish Unstable RPM Package to Buildkite Packages"
steps:
- name: ":redhat: Publish Unstable {{matrix.pkg_arch}} RPM Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.2.0:
artifacts: "rpm/buildkite-agent_*_{{matrix.pkg_arch}}.rpm"
registry: "buildkite/agent-rpm-unstable"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
attestations:
- "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json"
- "buildkite-agent-rpm-packages.package-attestation.json"
soft_fail: true
matrix:
setup:
go_arch:
- "amd64"
- "386"
- "arm64"
- "ppc64"
- "ppc64le"
- "riscv64"
pkg_arch:
- "SKIP_FAKE_ARCH"
adjustments:
- with: { go_arch: "amd64", pkg_arch: "x86_64" }
- with: { go_arch: "386", pkg_arch: "i386" }
- with: { go_arch: "arm64", pkg_arch: "aarch64" }
- with: { go_arch: "ppc64", pkg_arch: "ppc64" }
- with: { go_arch: "ppc64le", pkg_arch: "ppc64le" }
- with: { go_arch: "riscv64", pkg_arch: "riscv64" }
- with: { pkg_arch: "SKIP_FAKE_ARCH" }
skip: true

- name: ":debian: Publish Unstable Debian Package"
command: ".buildkite/steps/publish-debian-package.sh"
Expand All @@ -98,13 +123,42 @@ steps:
tmpfs:
- "/root/.gnupg"

- name: ":debian: Publish Unstable Debian Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.0.0:
artifacts: "deb/*.deb"
registry: "buildkite/agent-deb-unstable"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
soft_fail: true
- group: ":debian: Publish Unstable Debian Package to Buildkite Packages"
steps:
- name: ":debian: Publish Unstable {{matrix.pkg_arch}} Debian Package to Buildkite Packages"
plugins:
- publish-to-packages#v2.2.0:
artifacts: "deb/buildkite-agent_*_{{matrix.pkg_arch}}.deb"
registry: "buildkite/agent-deb-unstable"
artifact_build_id: "${BUILDKITE_TRIGGERED_FROM_BUILD_ID}"
attestations:
- "buildkite-agent-linux-{{matrix.go_arch}}.build-attestation.json"
- "buildkite-agent-debian-packages.package-attestation.json"
soft_fail: true
matrix:
setup:
go_arch:
- "amd64"
- "386"
- "arm"
- "armhf"
- "arm64"
- "ppc64"
- "ppc64le"
- "riscv64"
pkg_arch:
- "SKIP_FAKE_ARCH"
adjustments:
- with: { go_arch: "amd64", pkg_arch: "x86_64" }
- with: { go_arch: "386", pkg_arch: "i386" }
- with: { go_arch: "arm", pkg_arch: "arm" }
- with: { go_arch: "armhf", pkg_arch: "armhf" }
- with: { go_arch: "arm64", pkg_arch: "arm64" }
- with: { go_arch: "ppc64", pkg_arch: "ppc64" }
- with: { go_arch: "ppc64le", pkg_arch: "ppc64el" }
- with: { go_arch: "riscv64", pkg_arch: "riscv64" }
- with: { pkg_arch: "SKIP_FAKE_ARCH" }
skip: true

- name: ":docker: Publish Unstable Docker Images"
command: ".buildkite/steps/publish-docker-images.sh"
Expand Down
8 changes: 4 additions & 4 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ steps:
config: .buildkite/docker-compose.yml
cli-version: 2
run: agent
- generate-provenance-attestation#v1.0.0:
- generate-provenance-attestation#v1.1.0:
artifacts: "pkg/*"
attestation_name: "buildkite-agent-{{matrix.os}}-{{matrix.arch}}.build-attestation.json"
matrix:
Expand Down Expand Up @@ -253,7 +253,7 @@ steps:
command: ".buildkite/steps/build-debian-packages.sh"
artifact_paths: "deb/**/*"
plugins:
- generate-provenance-attestation#v1.0.0:
- generate-provenance-attestation#v1.1.0:
artifacts: "deb/*"
attestation_name: "buildkite-agent-debian-packages.package-attestation.json"

Expand All @@ -265,7 +265,7 @@ steps:
command: ".buildkite/steps/build-rpm-packages.sh"
artifact_paths: "rpm/**/*"
plugins:
- generate-provenance-attestation#v1.0.0:
- generate-provenance-attestation#v1.1.0:
artifacts: "rpm/*"
attestation_name: "buildkite-agent-rpm-packages.package-attestation.json"

Expand All @@ -280,7 +280,7 @@ steps:
- docker-compose#v4.14.0:
config: .buildkite/docker-compose.release.yml
run: github-release
- generate-provenance-attestation#v1.0.0:
- generate-provenance-attestation#v1.1.0:
artifacts: "releases/*.tar.gz;releases/*.zip"
attestation_name: "buildkite-agent-github-releases.attestation.json"

Expand Down

0 comments on commit 3709603

Please sign in to comment.