Skip to content

Commit

Permalink
[TMP]
Browse files Browse the repository at this point in the history
  • Loading branch information
krendelhoff2 committed Jul 19, 2024
1 parent c550db3 commit 70a674d
Showing 1 changed file with 1 addition and 115 deletions.
116 changes: 1 addition & 115 deletions .buildkite/pipeline-for-tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,13 @@ steps:
- eval "$SET_VERSION"
- |
if [[ "$BUILDKITE_TAG" =~ ^v.*-1 ]]; then
nix develop .#docker-tezos-packages -c ./docker/build/ubuntu/build.py --type source
nix develop .#docker-tezos-packages -c ./docker/build/ubuntu/build.py --type source --build-sapling-package -p tezos-baker-PtParisB tezos-baker-PsParisC tezos-accuser-PsParisC tezos-accuser-PtParisB tezos-codec tezos-signer tezos-dac-client tezos-client tezos-dac-node tezos-smart-rollup-wasm-debugger tezos-admin-client tezos-dal-node tezos-smart-rollup-node tezos-node tezos-sapling-params
else
nix develop .#docker-tezos-packages -c ./docker/build/ubuntu/build.py --type source --launchpad-sources
fi
artifact_paths:
- ./out/*

- label: Build fedora source packages
key: build-fedora-source-packages
if: build.tag =~ /^v.*/
commands:
- eval "$SET_VERSION"
- nix develop .#docker-tezos-packages -c ./docker/build/fedora/build.py --type source
artifact_paths:
- ./out/*

- label: Sign ubuntu source packages
if: build.tag =~ /^v.*/
depends_on:
Expand All @@ -48,18 +39,6 @@ steps:
artifact_paths:
- ./out/*

- label: Sign fedora source packages
if: build.tag =~ /^v.*/
depends_on:
- "build-fedora-source-packages"
key: sign-fedora-source-packages
commands:
- eval "$SET_VERSION"
- buildkite-agent artifact download "out/*" . --step build-fedora-source-packages
- nix develop .#docker-tezos-packages -c ./docker/build/fedora/sign.py -d out -i 'Serokell <tezos-packaging@serokell.io>'
artifact_paths:
- ./out/*

- label: Publish ubuntu native packages
if: build.tag =~ /^v.*/
depends_on:
Expand All @@ -68,96 +47,3 @@ steps:
- eval "$SET_VERSION"
- buildkite-agent artifact download "out/*" . --step sign-ubuntu-source-packages
- nix develop .#buildkite -c ./docker/build/ubuntu/upload.py -d out

- label: Publish fedora native packages
if: build.tag =~ /^v.*/
depends_on:
- "sign-fedora-source-packages"
commands:
- eval "$SET_VERSION"
- buildkite-agent artifact download "out/*" . --step sign-fedora-source-packages
- nix develop .#buildkite -c ./docker/build/fedora/upload.py -d out

- label: build-via-docker
if: build.tag =~ /^v.*/
key: build-via-docker
commands:
- eval "$SET_VERSION"
- cd docker
- ./docker-static-build.sh
artifact_paths:
- ./docker/octez-*

- label: Build source packages from static binaries
key: build-source-packages-from-static-binaries
if: build.tag =~ /^v.*/
depends_on:
- "build-via-docker"
commands:
- eval "$SET_VERSION"
- mkdir binaries
- buildkite-agent artifact download "docker/*" binaries --step build-via-docker
- nix develop .#docker-tezos-packages -c ./docker/build/fedora/build.py --type source --output-dir epel --binaries-dir ./binaries/docker
artifact_paths:
- ./epel/*

- label: Sign source packages built from static binaries
key: sign-source-packages-built-from-static-binaries
if: build.tag =~ /^v.*/
depends_on:
- "build-source-packages-from-static-binaries"
commands:
- eval "$SET_VERSION"
- buildkite-agent artifact download "epel/*" . --step build-source-packages-from-static-binaries
- nix develop .#docker-tezos-packages -c ./docker/build/fedora/sign.py -d epel -i 'Serokell <tezos-packaging@serokell.io>'
artifact_paths:
- ./epel/*

- label: Publish epel packages
if: build.tag =~ /^v.*/
depends_on:
- "sign-source-packages-built-from-static-binaries"
commands:
- eval "$SET_VERSION"
- mkdir -p srcs
- buildkite-agent artifact download "epel/*" srcs --step sign-source-packages-built-from-static-binaries
- nix develop .#buildkite -c ./docker/build/fedora/upload.py -d srcs/epel --upload epel

- label: Build Monterey x86_64 bottles
key: build-bottles-monterey-x86_64
if: build.tag =~ /^v.*/
agents:
queue: "x86_64-rosetta-darwin"
commands:
- nix develop .#autorelease-macos -c ./scripts/build-all-bottles.sh "monterey"
artifact_paths:
- '*.bottle.*'
retry:
automatic:
limit: 1

- label: Build Monterey arm64 bottles
key: build-bottles-monterey-arm64
if: build.tag =~ /^v.*/
agents:
queue: "arm64-darwin"
commands:
- nix develop .#autorelease-macos -c ./scripts/build-all-bottles.sh "arm64_monterey"
artifact_paths:
- '*.bottle.*'
retry:
automatic:
limit: 1

# We use the tag that triggered the pipeline here.
# However, this requires that the tag and the release name are the same, which
# in practice it's always the case in this repo.
- label: Add Monterey bottle hashes to formulae
depends_on:
- "build-bottles-monterey-arm64"
- "build-bottles-monterey-x86_64"
if: build.tag =~ /^v.*/
commands:
- mkdir -p "Monterey"
- nix develop .#buildkite -c gh release download "$BUILDKITE_TAG" -D "Monterey/" -p "*monterey.bottle.tar.gz"
- nix develop .#autorelease -c ./scripts/sync-bottle-hashes.sh "$BUILDKITE_TAG" "Monterey"

0 comments on commit 70a674d

Please sign in to comment.