init
This commit is contained in:
parent
4f97c75ee1
commit
b8a89c4c3e
@ -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
|
||||
mountPath: /custom-env
|
Loading…
x
Reference in New Issue
Block a user