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