An automated stage / promotion release process

This commit is contained in:
Shane McDonald
2021-11-19 02:22:45 +00:00
parent a206d79851
commit ef1563283e
5 changed files with 152 additions and 59 deletions

View File

@@ -1,5 +1,4 @@
---
- name: Create _build directory
file:
path: "{{ dockerfile_dest }}/{{ template_dest }}"

View File

@@ -2,13 +2,14 @@
- hosts: localhost
connection: local
vars:
changelog_path: ''
payload:
body: "{{ lookup('file', changelog_path) | replace('\\n', '\n') }}"
body: "{{ (lookup('file', changelog_path) | replace('\\n', '\n')) if changelog_path else '' }}"
name: "{{ version }}"
tag_name: "{{ version }}"
draft: true
tasks:
- name: Publish Release
- name: Publish draft Release
uri:
url: "https://api.github.com/repos/{{ repo }}/releases"
method: "POST"