Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
steps:
GetJiraID:
title: Get Jira ID
image: alpine:latest
commands:
- echo JIRAID=$(echo "${{CF_COMMIT_MESSAGE}}" |sed -e 's/\([A-Z]*-[0-9]*\).*/\1/') > ${{CF_VOLUME_PATH}}/env_vars_to_export
BuildingDockerImage:
title: Building Docker Image
type: build
image_name: otomato/bringon
working_directory: ./
dockerfile: Dockerfile
tag: '${{CF_SHORT_REVISION}}'
UpdatingJira:
title: Update Jira Issue
image: otomato/jira-cli:alpine
commands:
- yes n | jira-cli update ${JIRAID} --comment 'New docker image otomato/bringon:${{CF_SHORT_REVISION}}. Build log is here ${{CF_BUILD_URL}}' --jira-url ${JIRA_URL} -u ${JIRA_USR} -p ${JIRA_PWD}
when:
condition:
all:
JiraIdFound: 'match("${JIRAID}", "[A-Z]+-[0-9]+", true)'