Skip to content

Commit ab92df8

Browse files
szhGitHub Enterprise
authored andcommitted
Merge pull request #8 from Conjur-Enterprise/bump-deps
CONJSE-1844: Use venv for deploy scripts
2 parents 3420019 + 67c3c4d commit ab92df8

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

ci/publish/Dockerfile.publish

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ RUN mkdir -p $INSTALL_DIR
2020
WORKDIR $INSTALL_DIR
2121

2222
COPY ./requirements.txt $INSTALL_DIR/
23-
RUN pip3 install -r requirements.txt
23+
RUN python3 -m venv /venv
24+
RUN /venv/bin/pip3 install -r requirements.txt
2425

2526
COPY . $INSTALL_DIR

ci/publish/publish_package

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,16 @@ publish_to_pypi() {
5555
-e TWINE_PASSWORD \
5656
conjur-api-python3-publish bash -exc "
5757
echo 'Installing new versions of pip and wheel...'
58-
/usr/bin/env pip3 install --upgrade pip wheel
58+
/venv/bin/pip3 install --upgrade pip wheel
5959
6060
echo 'Building distributable package...'
61-
/usr/bin/env python3 -m build
61+
/venv/bin/python3 -m build
6262
6363
echo 'Testing artifacts in dist/*'
64-
/usr/bin/env twine check dist/*
64+
/venv/bin/twine check dist/*
6565
6666
echo 'Publishing package to '\$TWINE_REPOSITORY_URL' using account '\$TWINE_USERNAME'...'
67-
/usr/bin/env twine upload --skip-existing --repository-url $TWINE_REPOSITORY_URL dist/*
67+
/venv/bin/twine upload --skip-existing --repository-url $TWINE_REPOSITORY_URL dist/*
6868
"
6969
}
7070

0 commit comments

Comments
 (0)