Add logic to parse pulumi venv (#4994)
This commit is contained in:
parent
f364311064
commit
4316800f2f
|
@ -6,6 +6,9 @@ CHANGELOG
|
|||
- Add support for streamInvoke during update
|
||||
[#4990](https://github.com/pulumi/pulumi/pull/4990)
|
||||
|
||||
- Add logic to parce pulumi venv on github action
|
||||
[#4994](https://github.com/pulumi/pulumi/pull/4994)
|
||||
|
||||
## 2.6.1 (2020-07-09)
|
||||
|
||||
- Fix a panic in the display during CLI operations
|
||||
|
@ -392,7 +395,7 @@ CHANGELOG
|
|||
[3938](https://github.com/pulumi/pulumi/pull/3938)
|
||||
|
||||
- Add support for transformations in the Go SDK.
|
||||
[3978](https://github.com/pulumi/pulumi/pull/3938)
|
||||
[3978](https://github.com/pulumi/pulumi/pull/3938)
|
||||
|
||||
## 1.11.0 (2020-02-19)
|
||||
- Allow oversize protocol buffers for Python SDK.
|
||||
|
|
13
dist/actions/entrypoint.sh
vendored
13
dist/actions/entrypoint.sh
vendored
|
@ -79,7 +79,7 @@ fi
|
|||
# For Google, we need to authenticate with a service principal for certain authentication operations.
|
||||
if [ ! -z "$GOOGLE_CREDENTIALS" ]; then
|
||||
export GOOGLE_APPLICATION_CREDENTIALS="$(mktemp).json"
|
||||
# Check if GOOGLE_CREDENTIALS is base64 encoded
|
||||
# Check if GOOGLE_CREDENTIALS is base64 encoded
|
||||
if [[ $GOOGLE_CREDENTIALS =~ ^([A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{2}==)?$ ]]; then
|
||||
echo "$GOOGLE_CREDENTIALS"|base64 -d > $GOOGLE_APPLICATION_CREDENTIALS
|
||||
# unset for other gcloud commands using this variable.
|
||||
|
@ -118,7 +118,16 @@ fi
|
|||
|
||||
# If the user is running the Python SDK, we will need to install their requirements as well.
|
||||
if [ -e requirements.txt ]; then
|
||||
pip3 install -r requirements.txt
|
||||
# Check if should use venv
|
||||
PULUMI_VENV=$(cat Pulumi.yaml | grep "virtualenv:" | cut -d':' -f2)
|
||||
if [ -z $PULUMI_VENV ]; then
|
||||
python3 -m venv $PULUMI_VENV
|
||||
source $PULUMI_VENV/bin/activate
|
||||
pip3 install -r requirements.txt
|
||||
deactivate
|
||||
else
|
||||
pip3 install -r requirements.txt
|
||||
fi
|
||||
fi
|
||||
|
||||
# Now just pass along all arguments to the Pulumi CLI, sending the output to a file for
|
||||
|
|
Loading…
Reference in a new issue