init
This commit is contained in:
parent
bf3e079747
commit
be3b87a441
@ -80,25 +80,20 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: DOCKER_CONFIG
|
- name: DOCKER_CONFIG
|
||||||
value: /tekton/home/.docker
|
value: /tekton/home/.docker
|
||||||
- name: PYPI_USERNAME
|
script: |
|
||||||
valueFrom:
|
#!/bin/sh
|
||||||
secretKeyRef:
|
set -e
|
||||||
name: pypi-auth
|
|
||||||
key: username
|
PYPI_USERNAME=$(cat /workspace/pypi-auth/username)
|
||||||
- name: PYPI_PASSWORD
|
PYPI_PASSWORD=$(cat /workspace/pypi-auth/password)
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
/kaniko/executor \
|
||||||
name: pypi-auth
|
--dockerfile=$(params.subdirectory)/$(params.dockerfile) \
|
||||||
key: password
|
--context=$(params.subdirectory)/$(params.context) \
|
||||||
command:
|
--destination=$(params.imageName):$(params.tag) \
|
||||||
- /kaniko/executor
|
--skip-tls-verify \
|
||||||
args:
|
--reproducible \
|
||||||
- --dockerfile=$(params.subdirectory)/$(params.dockerfile)
|
--verbosity=info \
|
||||||
- --context=$(params.subdirectory)/$(params.context)
|
--build-arg PYPI_USERNAME=$PYPI_USERNAME \
|
||||||
- --destination=$(params.imageName):$(params.tag)
|
--build-arg PYPI_PASSWORD=$PYPI_PASSWORD
|
||||||
- --skip-tls-verify
|
|
||||||
- --reproducible
|
|
||||||
- --verbosity=info
|
|
||||||
- --build-arg=PYPI_USERNAME=$(PYPI_USERNAME)
|
|
||||||
- --build-arg=PYPI_PASSWORD=$(PYPI_PASSWORD)
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user