mirror of
https://github.com/ansible/awx.git
synced 2026-02-14 01:34:45 -03:30
An automated stage / promotion release process
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
---
|
||||
|
||||
- name: Create _build directory
|
||||
file:
|
||||
path: "{{ dockerfile_dest }}/{{ template_dest }}"
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user