Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Version 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbaerlocher authored Aug 14, 2019
2 parents 40cf54e + bc8d19b commit e346503
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 4 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
and [human-readable changelog](https://keepachangelog.com/en/1.0.0/).

## 0.2.0

### Added

- add option for pre and after tasks in the .milk folder of the package
- add jmespath package and option changelog body_format
- add version perfix

## 0.1.1

### Added
Expand Down
1 change: 1 addition & 0 deletions before.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@
name:
- docker
- lxml
- jmespath
3 changes: 2 additions & 1 deletion package/version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
url: '{{ changelog }}'
return_content: true
validate_certs: false
body_format: '{{ changelog_format | default(omit) }}'
register: register_changelog

- name: '{{ package_id }} : load current version'
Expand All @@ -17,7 +18,7 @@

- name: '{{ package_id }} : search version'
set_fact:
available_version: "{{ version | regex_replace('-', '.') }}"
available_version: "{{ versions_prefix | default() }}{{ version | regex_replace('-', '.') }}"
current_version: '{{ register_nuspec.matches[0]["{http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd}version"] }}'

- block:
Expand Down
30 changes: 27 additions & 3 deletions play.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,22 @@
content: text
register: register_package_id

- name: 'Search pre-tasks file'
find:
paths: '{{ register_package_directory.files[0].path }}/.milk'
recurse: true
patterns: '*pretasks*'
hidden: true
register: register_pretasks_path

- name: 'Search after-tasks file'
find:
paths: '{{ register_package_directory.files[0].path }}/.milk'
recurse: true
patterns: '*aftertasks*'
hidden: true
register: register_aftertasks_path

- name: 'Sets search info'
set_fact:
path_package: '{{ register_package_directory.files[0].path }}'
Expand All @@ -64,8 +80,10 @@
path_milk: '{{ register_milk_path.files[0].path }}'
path_readme: '{{ register_readme_path.files[0].path }}'
package_id: '{{ register_package_id.matches[0]["{http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd}id"] }}'
path_pretasks: '{{ register_pretasks_path.files[0].path | default(omit) }}'
path_aftertasks: '{{ register_aftertasks_path.files[0].path | default(omit) }}'

- name: Include Playbooks Vara
- name: 'include .milk vars'
include_vars:
file: '{{ path_milk }}'

Expand All @@ -75,6 +93,10 @@
include_tasks: package/version.yml

- block:
- name: 'include pre-tasks'
include_tasks: '{{ path_pretasks }}'
when: path_pretasks is defined and path_pretasks

# File Hash
- name: '{{ package_id }} : include file hash'
include_tasks: package/file_hash.yml
Expand All @@ -90,8 +112,6 @@
loop: '{{ searchreplace | dict2items }}'
loop_control:
loop_var: loop_searchreplace
tags:
- test

- name: '{{ package_id }} : include nuspec'
include_tasks: package/nuspec.yml
Expand All @@ -107,6 +127,10 @@
volumes:
- '{{ path_package }}:{{ path_package }}'

- name: 'include after-tasks'
include_tasks: '{{ path_aftertasks }}'
when: path_aftertasks is defined and path_aftertasks

- name: '{{ package_id }} : load deploy'
include_tasks: deploy/{{ loop_deploy.provider }}.yml
loop_control:
Expand Down

0 comments on commit e346503

Please sign in to comment.