project-config/playbooks/publish/puppetforge.yaml
Tobias Urdin 1de4c20e00 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
2019-02-11 11:44:34 +00:00

19 lines
568 B
YAML

- hosts: localhost
tasks:
- name: Find all puppet tarballs in artifacts
find:
paths: "{{ zuul.executor.work_root }}/artifacts/"
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 }}"