ci(release): use Python venv in release job
All checks were successful
Test pipeline / test (push) Successful in 15s
All checks were successful
Test pipeline / test (push) Successful in 15s
This commit is contained in:
parent
69c3229fee
commit
a8f6e9e7a4
1 changed files with 4 additions and 2 deletions
|
@ -114,9 +114,11 @@ release:
|
|||
image: registry.gitlab.com/gitlab-org/release-cli:latest
|
||||
needs: ["test", "build-package"]
|
||||
before_script:
|
||||
- apk add --no-cache git python3 py3-pip
|
||||
- python3 -m pip install setuptools_scm
|
||||
- apk add --no-cache git python3 py3-virtualenv
|
||||
- python3 -m virtualenv venv
|
||||
- source venv/bin/activate
|
||||
script:
|
||||
- pip install setuptools_scm
|
||||
- |
|
||||
# Get version from setuptools_scm
|
||||
VERSION=$(python3 -c "from setuptools_scm import get_version; print(get_version())")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue