From f95425c582a127b3fe6afb9837ce73f021615574 Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Wed, 16 Apr 2025 01:30:31 +0000 Subject: [PATCH] init --- tasks/pypi/task.yaml | 26 +++----------------------- 1 file changed, 3 insertions(+), 23 deletions(-) diff --git a/tasks/pypi/task.yaml b/tasks/pypi/task.yaml index 9615775..48ea50b 100644 --- a/tasks/pypi/task.yaml +++ b/tasks/pypi/task.yaml @@ -4,10 +4,6 @@ metadata: name: pypi spec: params: - - name: home - type: string - description: home directory - - name: build-artifact-path type: string description: Path to the built artifact directory from python-build @@ -23,33 +19,17 @@ spec: default: https://upload.pypi.org/legacy/ workspaces: - - name: shared - description: Workspace containing the built artifacts - name: nexus-credentials + description: Workspace containing credentials for PyPI upload 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 - ls -al $HOME - ls -al $HOME/.config/pypoetry/ - cat $HOME/.netrc + export TWINE_USERNAME=$(cat /workspace/nexus-credentials/username) + export TWINE_PASSWORD=$(cat /workspace/nexus-credentials/password) HOSTED_URL="$(params.pypi-hosted-url)"