Rework to use new upload-forge module
Reworks the publish playbooks and the post-run jobs for the Puppet release job. Depends-On: https://review.openstack.org/#/c/635941/ Change-Id: Ia9b149d3e1e94331b047d9bc762359d09ce81b20
This commit is contained in:
parent
b5ad176a1d
commit
1de4c20e00
@ -1,6 +1,18 @@
|
|||||||
- hosts: all
|
- hosts: localhost
|
||||||
roles:
|
tasks:
|
||||||
- role: upload-puppetforge
|
- name: Find all puppet tarballs in artifacts
|
||||||
blacksmith_forge_username: "{{ puppetforge.user }}"
|
find:
|
||||||
blacksmith_forge_password: "{{ puppetforge.password }}"
|
paths: "{{ zuul.executor.work_root }}/artifacts/"
|
||||||
when: zuul_success | bool
|
patterns: '*.tar.gz'
|
||||||
|
recurse: yes
|
||||||
|
register: tarballs
|
||||||
|
- name: Upload tarballs to PuppetForge
|
||||||
|
include_role:
|
||||||
|
name: upload-forge
|
||||||
|
vars:
|
||||||
|
forge_username: "{{ puppetforge.user }}"
|
||||||
|
forge_password: "{{ puppetforge.password }}"
|
||||||
|
forge_tarball: "{{ item.path }}"
|
||||||
|
forge_url: "https://forgeapi.puppet.com"
|
||||||
|
with_items:
|
||||||
|
- "{{ tarballs.files }}"
|
||||||
|
@ -114,8 +114,8 @@
|
|||||||
pre-run: playbooks/puppet-tarball/pre.yaml
|
pre-run: playbooks/puppet-tarball/pre.yaml
|
||||||
run: playbooks/puppet-tarball/run.yaml
|
run: playbooks/puppet-tarball/run.yaml
|
||||||
post-run:
|
post-run:
|
||||||
- playbooks/publish/puppetforge.yaml
|
|
||||||
- playbooks/puppet-tarball/post.yaml
|
- playbooks/puppet-tarball/post.yaml
|
||||||
|
- playbooks/publish/puppetforge.yaml
|
||||||
secrets:
|
secrets:
|
||||||
- gpg_key
|
- gpg_key
|
||||||
- name: puppetforge
|
- name: puppetforge
|
||||||
|
Loading…
Reference in New Issue
Block a user