Skip to content

Instantly share code, notes, and snippets.

@therightstuff
Created October 3, 2021 10:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save therightstuff/8a0d1c16cbc13ac85088d42214bb29cc to your computer and use it in GitHub Desktop.
Save therightstuff/8a0d1c16cbc13ac85088d42214bb29cc to your computer and use it in GitHub Desktop.
Bamboo YAML Specs Tips and Tricks
version=1.0.2
git_branch=feature/example
branches:
create: manually
delete: never
# 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:
...
---
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:
...
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