Fix: Reuse nvm.sh before run yarn

1. Reuse nvm.sh before run yarn
2. Move all tar.gz and whell packages into dist under skyline-apiserver

Change-Id: I423b174d19e067eeb16cf4e3a8a51771468c1e4b
This commit is contained in:
zhu.boxiang 2021-10-08 18:29:48 +08:00
parent 7b61aeee13
commit 26a0e85f40

View File

@ -22,6 +22,19 @@
executable: /bin/bash
cmd: |
git submodule update --init
. $HOME/.nvm/nvm.sh
$HOME/.local/bin/tox -e package
args:
chdir: "src/{{ zuul.project.canonical_name }}"
- name: Move all tar.gz and wheel packages into dist
shell: "mv libs/{{ item }}/dist/* dist/"
args:
chdir: "src/{{ zuul.project.canonical_name }}"
with_items:
- "skyline-apiserver"
- "skyline-config"
- "skyline-console"
- "skyline-log"
- "skyline-nginx"
- "skyline-policy-manager"