init
This commit is contained in:
parent
fb05e1615a
commit
53147584e2
@ -16,26 +16,25 @@ spec:
|
||||
- name: source
|
||||
description: Workspace containing the cloned Git repository from git-clone-checkout
|
||||
steps:
|
||||
- name: debug-workspace
|
||||
image: ubuntu
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
if [ -n "$(params.subdirectory)" ]; then
|
||||
if [ -d "$(params.subdirectory)" ]; then
|
||||
echo "Subdirectory $(params.subdirectory) exists:"
|
||||
ls -la $(params.subdirectory)
|
||||
else
|
||||
echo "Subdirectory $(params.subdirectory) not found!"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
# - name: debug-workspace
|
||||
# image: ubuntu
|
||||
# workingDir: /workspace/source
|
||||
# script: |
|
||||
# #!/usr/bin/env bash
|
||||
# if [ -n "$(params.subdirectory)" ]; then
|
||||
# if [ -d "$(params.subdirectory)" ]; then
|
||||
# echo "Subdirectory $(params.subdirectory) exists:"
|
||||
# ls -la $(params.subdirectory)
|
||||
# else
|
||||
# echo "Subdirectory $(params.subdirectory) not found!"
|
||||
# exit 1
|
||||
# fi
|
||||
# fi
|
||||
- name: install-dependencies
|
||||
image: python:$(params.python-version)-slim
|
||||
workingDir: /workspace/source
|
||||
script: |
|
||||
#!/usr/bin/env bash
|
||||
ls -la /workspace/source
|
||||
if [ -n "$(params.subdirectory)" ]; then
|
||||
cd $(params.subdirectory)
|
||||
fi
|
||||
@ -44,6 +43,7 @@ spec:
|
||||
if [ -f pyproject.toml ]; then
|
||||
pip install poetry
|
||||
poetry config virtualenvs.in-project true
|
||||
poetry lock --no-cache --regenerate
|
||||
poetry install --no-root
|
||||
elif [ -f requirements.txt ]; then
|
||||
pip install -r requirements.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user