init
This commit is contained in:
parent
72fbb3a033
commit
fe7ee5476c
@ -80,24 +80,25 @@ spec:
|
|||||||
env:
|
env:
|
||||||
- name: DOCKER_CONFIG
|
- name: DOCKER_CONFIG
|
||||||
value: /tekton/home/.docker
|
value: /tekton/home/.docker
|
||||||
script: |
|
- name: PYPI_USERNAME
|
||||||
#!/bin/sh
|
valueFrom:
|
||||||
set -e
|
secretKeyRef:
|
||||||
|
name: pypi-secret
|
||||||
|
key: username
|
||||||
|
- name: PYPI_PASSWORD
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: pypi-secret
|
||||||
|
key: password
|
||||||
|
command:
|
||||||
|
- /kaniko/executor
|
||||||
|
args:
|
||||||
|
- --dockerfile=$(params.subdirectory)/$(params.dockerfile)
|
||||||
|
- --context=$(params.subdirectory)/$(params.context)
|
||||||
|
- --destination=$(params.imageName):$(params.tag)
|
||||||
|
- --skip-tls-verify
|
||||||
|
- --reproducible
|
||||||
|
- --verbosity=info
|
||||||
|
- --build-arg=PYPI_USERNAME=$(PYPI_USERNAME)
|
||||||
|
- --build-arg=PYPI_PASSWORD=$(PYPI_PASSWORD)
|
||||||
|
|
||||||
if [ -n "$(params.subdirectory)" ]; then
|
|
||||||
cd "$(params.subdirectory)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
PYPI_USERNAME=$(cat /workspace/pypi-auth/username)
|
|
||||||
PYPI_PASSWORD=$(cat /workspace/pypi-auth/password)
|
|
||||||
|
|
||||||
echo "🚀 Running bitnami/kaniko build..."
|
|
||||||
/kaniko/executor \
|
|
||||||
--dockerfile=$(params.dockerfile) \
|
|
||||||
--context=$(params.context) \
|
|
||||||
--destination=$(params.imageName):$(params.tag) \
|
|
||||||
--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