-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow overriding compose env for local builds
Now we can write this very simple pipeline for debugging builds locally. ```ruby Buildkite::Builder.pipeline do require "buildkite_config" use Buildkite::Config::BuildContext use Buildkite::Config::DockerBuild use Buildkite::Config::RakeCommand use Buildkite::Config::RubyGroup plugin :docker_compose, "docker-compose#v4.16.0" plugin :artifacts, "artifacts#v1.9.3" build_context.setup_rubies %w(3.3) group do label "build" build_context.rubies.each do |ruby| builder ruby, compose: { "cli_version": "2", "image-name": "buildkite_base", "cache-from": ["buildkite_base"], "push": "", "image-repository": "", } end end build_context.rubies.each do |ruby| ruby_group ruby do rake "actioncable", task: "test:integration", retry_on: { exit_status: -1, limit: 3 }, compose: { "cli_version": "2", "pull": "", }, env: { "IMAGE_NAME": "buildkite_base", } end end end ``` :nail_care: whitespace
- Loading branch information
Showing
4 changed files
with
143 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters