Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

Commit

Permalink
change buildkite pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
David Yan committed Aug 29, 2019
1 parent fdc617f commit 98915ad
Showing 1 changed file with 6 additions and 89 deletions.
95 changes: 6 additions & 89 deletions .buildkite/deploy.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ steps:
- platform/*

- label: Extract platform resources (devnet2 branch only)
branches: devnet2
branches: david-yan/gas-benchmarks
command:
- .buildkite/scripts/extract_platform_resources.sh platform
artifact_paths:
Expand All @@ -52,7 +52,7 @@ steps:
- platform-prod/*

- label: Extract production-track platform resources (devnet2 branch only)
branches: devnet2
branches: david-yan/gas-benchmarks
command:
- .buildkite/scripts/extract_platform_resources.sh platform-prod latest-devnet2
artifact_paths:
Expand All @@ -64,7 +64,7 @@ steps:
command: .buildkite/scripts/set_docker_tag_meta_data.sh

- label: Build artifacts
branches: master devnet2
branches: master david-yan/gas-benchmarks
command:
- .buildkite/scripts/setup_gitconfig.sh
- eval $(ssh-agent -s)
Expand All @@ -77,24 +77,8 @@ steps:
plugins:
<<: *docker_plugin_configuration

- label: Build benchmarking artifacts
branches: master devnet2
command:
- .buildkite/scripts/setup_gitconfig.sh
- eval $(ssh-agent -s)
- ssh-add
- .buildkite/scripts/build_deployment_context.sh platform context-bench.tar.gz
env:
BUILD_BENCHMARKING: "1"
artifact_paths:
- context-bench.tar.gz
agents:
buildkite_agent_size: large
plugins:
<<: *docker_plugin_configuration

- label: Build production-track artifacts
branches: master devnet2
branches: master david-yan/gas-benchmarks
command:
- .buildkite/scripts/setup_gitconfig.sh
- eval $(ssh-agent -s)
Expand All @@ -109,78 +93,11 @@ steps:
plugins:
<<: *docker_plugin_configuration

- wait

- label: Update testing docker image tags (master branches only)
branches: master
command:
- .buildkite/scripts/build_tag_push_deployment_image.sh context.tar.gz
- .buildkite/scripts/promote_deployment_image_to.sh latest-testing
env:
BASE_VARIANT: testing
DEPLOYMENT_VARIANT: testing

- label: Update testing docker image tags (devnet2 branch only)
branches: devnet2
command:
- .buildkite/scripts/build_tag_push_deployment_image.sh context.tar.gz
- .buildkite/scripts/promote_deployment_image_to.sh latest-testing-devnet2
env:
BASE_VARIANT: testing
DEPLOYMENT_VARIANT: testing

- label: Update benchmarking docker image tags (master branches only)
branches: master
command:
- .buildkite/scripts/build_tag_push_deployment_image.sh context-bench.tar.gz
- .buildkite/scripts/promote_deployment_image_to.sh latest-benchmarking
env:
BASE_VARIANT: testing
DEPLOYMENT_VARIANT: benchmarking

- label: Update staging docker image tags (master branches only)
branches: master
command:
- .buildkite/scripts/build_tag_push_deployment_image.sh context-prod.tar.gz
- .buildkite/scripts/promote_deployment_image_to.sh staging

- label: Update staging devnet2 docker image tags (devnet2 branch only)
branches: devnet2
- label: Building docker image
branches: david-yan/gas-benchmarks
command:
- .buildkite/scripts/build_tag_push_deployment_image.sh context-prod.tar.gz
- .buildkite/scripts/promote_deployment_image_to.sh staging-devnet2
env:
BASE_VARIANT: devnet2
DEPLOYMENT_VARIANT: devnet2

- wait

- label: "Trigger staging deployment (master branches only)"
trigger: private-ops-deploy-ekiden-staging
branches: master
build:
message: "${BUILDKITE_MESSAGE}"
commit: HEAD
branch: master

- label: "Trigger staging devnet2 deployment (devnet2 branch only)"
trigger: private-ops-deploy-ekiden-devnet2-staging
branches: devnet2
build:
message: "${BUILDKITE_MESSAGE}"
commit: HEAD
branch: master

- label: "Build and push all-in-one image (master branches only)"
branches: master
command:
- ./docker/all-in-one/build.sh
- docker tag local-aio:latest oasislabs/private-all-in-one:latest
- docker push oasislabs/private-all-in-one:latest

- label: "Build and push all-in-one image (devnet2 branch only)"
branches: devnet2
command:
- ./docker/all-in-one/build.sh
- docker tag local-aio:latest oasislabs/private-all-in-one:latest-devnet2
- docker push oasislabs/private-all-in-one:latest-devnet2

0 comments on commit 98915ad

Please sign in to comment.