Jets CI BuildSpec
The Jets CI Runner uses a managed buildspec.yml. It looks something like this:
version: 0.2
phases:
build:
commands:
- curl -sSL $JETS_CI_SETUP | bash
- bundle
- bundle exec jets deploy -y
Customizing buildspec.yml
There are 2 ways to provide a custom buildspec.yml
- config.ci.buildspec
- config/jets/ci/buildspec.yml
You can configure a custom path to the buildspec.yml or String with the buildspec content itself. Example:
config/jets/deploy.rb
Jets.deploy.configure do
config.ci.buildspec = "custom/buildspec.yml"
end
Or if the config/jets/ci/buildspec.yml
exists, Jets use that as the buildspec.yml. Example:
config/jets/ci/buildspec.yml
version: 0.2
phases:
build:
commands:
- bundle
- bundle exec jets deploy -y
Otherwise, Jets will use a managed buildspec.yml that it generates.
Important: You have to commit and run jets ci:deploy
for the changes to take effect:
jets ci:deploy