diff --git a/tasks/pypi/task.yaml b/tasks/pypi/task.yaml index 3ed3461..9615775 100644 --- a/tasks/pypi/task.yaml +++ b/tasks/pypi/task.yaml @@ -25,13 +25,24 @@ spec: workspaces: - name: shared description: Workspace containing the built artifacts - + - name: nexus-credentials steps: - name: upload-to-pypi image: $(params.pythonImageName) env: - name: HOME value: /workspace/shared/$(params.home) + + - name: TWINE_USERNAME + valueFrom: + secretKeyRef: + name: nexus-credentials + key: username + - name: TWINE_PASSWORD + valueFrom: + secretKeyRef: + name: nexus-credentials + key: password script: | #!/usr/bin/env bash set -e