skyline-apiserver/playbooks/python-tarball/run.yaml
zhu.boxiang 8cb60f0833 chore: Move skyline_apiserver out of libs
1. move skyline_apiserver out of libs
2. remove libs folder
3. remove old skyline folder
4. adjust zull, devstack and dockerfile

Change-Id: I27a4babd3df077d1dfc7555f67a6ea618d4b2966
2022-05-18 17:21:00 +08:00

32 lines
883 B
YAML

- hosts: all
tasks:
- name: Install tox
shell:
executable: /bin/bash
cmd: |
# tox
pip3 install tox
- name: Build tarball and wheel
shell:
executable: /bin/bash
cmd: |
$HOME/.local/bin/tox -e package
args:
chdir: "src/{{ zuul.project.canonical_name }}"
- name: Rename whl files to branch specific name
shell: "mv {{ item }}*.whl {{ item }}-{{ zuul.branch | replace('/', '-') }}.whl"
args:
chdir: "src/{{ zuul.project.canonical_name }}/dist"
with_items:
- "skyline_apiserver"
- name: Rename tar.gz files to branch specific name
shell: "mv {{ item }}*.tar.gz {{ item }}-{{ zuul.branch | replace('/', '-') }}.tar.gz"
args:
chdir: "src/{{ zuul.project.canonical_name }}/dist"
with_items:
- "skyline-apiserver"