skyline-console/playbooks/python-tarball/post.yaml
zhu.boxiang 7a78dac501 feat: Publish skyline-console to opendev tarballs
1. add tox.ini file
2. add playbooks for python tarball
3. add publish-skyline-console-python-branch-tarball job

Change-Id: I12124e65ffd67f18442bb4ff9ffb398c0d65114c
2021-12-24 14:06:32 +08:00

36 lines
932 B
YAML

- hosts: all
tasks:
- name: Find tarballs and wheels in dist folder
find:
file_type: file
paths: "src/{{ zuul.project.canonical_name }}/dist"
patterns: "*.tar.gz,*.whl"
register: result
- name: Display stat for tarballs and wheels
stat:
path: "{{ zj_tarball_wheel.path }}"
with_items: "{{ result.files }}"
loop_control:
loop_var: zj_tarball_wheel
- name: Ensure artifacts directory exists
file:
path: "{{ zuul.executor.work_root }}/artifacts"
state: directory
mode: 0755
delegate_to: localhost
- name: Collect artifacts
synchronize:
dest: "{{ zuul.executor.work_root }}/artifacts/"
mode: pull
src: "{{ zj_artifact.path }}"
verify_host: true
owner: no
group: no
with_items: "{{ result.files }}"
loop_control:
loop_var: zj_artifact