initial commit
This commit is contained in:
19
bamboo-specs/bamboo.yml
Normal file
19
bamboo-specs/bamboo.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
version: 2
|
||||
|
||||
Default Job:
|
||||
tasks:
|
||||
- script:
|
||||
- echo version=$(date -d "${bamboo.buildTimeStamp}" +"%Y%m%d-%H%M%S") > version.txt
|
||||
- inject-variables:
|
||||
file: version.txt
|
||||
- script: |
|
||||
docker build . -t helloworld-test:${bamboo.inject.version} \
|
||||
--label=vcs_url="${bamboo.planRepository.repositoryUrl}" \
|
||||
--label=vcs_branch="${bamboo.planRepository.branch}" \
|
||||
--label=vcs_revision="${bamboo.planRepository.revision}" \
|
||||
--label=build_timestamp="${bamboo.buildTimeStamp}" \
|
||||
--label=build_plan_name="${bamboo.buildPlanName}" \
|
||||
--label=build_number="${bamboo.buildNumber}"
|
||||
requirements:
|
||||
- Docker
|
||||
Reference in New Issue
Block a user