This gist contains sample for the Medium article Bamboo YAML Specs Tips and Tricks (also available at industrial curiosity)
Created
October 3, 2021 10:35
-
-
Save therightstuff/8a0d1c16cbc13ac85088d42214bb29cc to your computer and use it in GitHub Desktop.
Bamboo YAML Specs Tips and Tricks
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
version=1.0.2 | |
git_branch=feature/example |
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
branches: | |
create: manually | |
delete: never |
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
# deployment plan definition | |
deployment: | |
name: Product Name | |
source-plan: PROJECTKEY-PLANKEY | |
release-naming: ${bamboo.inject.version} | |
environments: | |
- Development | |
- Staging | |
- Production | |
Development: | |
docker: | |
image: golang:1.16.6-buster | |
docker-run-arguments: | |
- --net=host | |
tasks: | |
... |
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
--- | |
version: 2 | |
# build plan definition | |
plan: | |
project-key: PROJECTKEY | |
key: PLANKEY | |
name: Product Name | |
... | |
branches: | |
create: manually | |
delete: never | |
--- | |
version: 2 | |
# build plan permissions | |
plan: | |
key: PROJECTKEY-PLANKEY | |
plan-permissions: | |
... | |
--- | |
version: 2 | |
# deployment plan definition | |
deployment: | |
# NOTE: deployment plan names must be unique | |
name: Product Name | |
source-plan: PROJECTKEY-PLANKEY | |
release-naming: | |
next-version-name: ${bamboo.inject.version} | |
applies-to-branches: true | |
... | |
--- | |
version: 2 | |
# deployment plan permissions | |
deployment: | |
name: Product Name | |
deployment-permissions: | |
... |
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
release-naming: | |
next-version-name: ${bamboo.inject.version} | |
applies-to-branches: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment