Logo: Relish

  1. Sign in

Project: Rebuild

rbld publish

  • @with-registry

As a CLI user
I want to be able to publish environments with rbld publish

Scenarios
publish help succeeds and usage is printed
Given
I successfully request help for rbld publish
Then
help output should contain:
Publish environment on remote registry
no remote registry configured
Given
remote registry is not configured
When
I run rbld publish test-env1:v001
Then
it should fail with:
ERROR: Remote not defined
publish environment that does not exist
Given
my rebuild registry is empty
When
I run rbld publish environment name
Then
it should fail with:
ERROR: Unknown environment full environment name
Examples:
environment name full environment name
nonexisting nonexisting:initial
nonexisting:sometag nonexisting:sometag
remote registry is not accessible
Given
remote registry is not accessible
When
I run rbld publish test-env1:v001
Then
it should fail with:
ERROR: Failed to access registry at
remote registry type in not known
Given
remote registry type is "__DUMMY__"
When
I run rbld publish test-env1:v001
Then
it should fail with "ERROR: Remote type __DUMMY__ is unknown"
publish a new environment
Given
existing environment full environment name
And
my rebuild registry is empty
When
I run rbld publish environment name
Then
it should pass with:
Successfully published full environment name
And
environment environment name should be published
Examples:
environment name full environment name
test-env1 test-env1:initial
test-env1:v001 test-env1:v001
publish a modified environment
Given
my rebuild registry is empty
And
environment test-env1:v001 is modified
When
I run rbld publish test-env1:v001
Then
it should fail with:
ERROR: Environment is modified, commit or checkout first
publish environment which is already published
Given
existing environment test-env1:v001
And
my rebuild registry contains environment test-env1:v001
When
I run rbld publish test-env1:v001
Then
it should fail with:
ERROR: Environment test-env1:v001 already published

Last published almost 5 years ago by Rebuild.