Fix: Add pre-run into job

Add pre-run into job to ensure pip3 and revoke sudo.

Change-Id: I7eb5431f7dc18bfcade5498c7af1a9364bad68bc
This commit is contained in:
zhu.boxiang 2021-10-09 17:26:48 +08:00
parent 7a9b11a6a2
commit 4b0fd453cc
2 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,7 @@
parent: publish-openstack-artifacts
description: |
Publish the results tar.gz and whl packages to tarballs.openstack.org.
pre-run: playbooks/python-tarball/pre.yaml
run: playbooks/python-tarball/run.yaml
vars:
release_python: python3

View File

@ -0,0 +1,5 @@
- hosts: all
roles:
# We use ensure-pip to make sure the wheel module is installed
- ensure-pip
- revoke-sudo