diff --git a/tasks/docker-registry/task.yaml b/tasks/docker-registry/task.yaml index edfbeef..2cbf99f 100644 --- a/tasks/docker-registry/task.yaml +++ b/tasks/docker-registry/task.yaml @@ -51,12 +51,12 @@ spec: script: | #!/bin/sh set -e - mkdir -p /tekton/env - echo "PYPI_USERNAME=$(cat /workspace/pypi-auth/username)" > /tekton/env/.env - echo "PYPI_PASSWORD=$(cat /workspace/pypi-auth/password)" >> /tekton/env/.env + mkdir -p /custom-env + echo "PYPI_USERNAME=$(cat /workspace/pypi-auth/username)" > /custom-env/.env + echo "PYPI_PASSWORD=$(cat /workspace/pypi-auth/password)" >> /custom-env/.env volumeMounts: - name: env - mountPath: /tekton/env + mountPath: /custom-env - name: write-docker-config image: alpine:3.21.3 @@ -88,7 +88,7 @@ spec: EOF volumeMounts: - name: env - mountPath: /tekton/env + mountPath: /custom-env - name: kaniko-build image: gcr.io/kaniko-project/executor:v1.23.2 @@ -98,7 +98,7 @@ spec: - -c - | set -e - . /tekton/env/.env + . /custom-env/.env /kaniko/executor \ --dockerfile=$(params.subdirectory)/$(params.dockerfile) \ @@ -114,4 +114,4 @@ spec: value: /tekton/home/.docker volumeMounts: - name: env - mountPath: /tekton/env \ No newline at end of file + mountPath: /custom-env \ No newline at end of file