Fixed docker publish in Tekton
This commit is contained in:
parent
42878c6d7d
commit
720bfb8b62
@ -9,3 +9,15 @@ metadata:
|
|||||||
tekton.dev/docker-0: https://docker.cluster.fun/averagemarcus
|
tekton.dev/docker-0: https://docker.cluster.fun/averagemarcus
|
||||||
type: Opaque
|
type: Opaque
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: docker-config
|
||||||
|
namespace: tekton-pipelines
|
||||||
|
annotations:
|
||||||
|
kube-1password: i6ngbk5zf4k52xgwdwnfup5bby
|
||||||
|
kube-1password/vault: Kubernetes
|
||||||
|
kube-1password/secret-text-key: config.json
|
||||||
|
type: Opaque
|
||||||
|
@ -32,6 +32,8 @@ spec:
|
|||||||
expression: "split(body.ref, '/')[2]"
|
expression: "split(body.ref, '/')[2]"
|
||||||
- key: ref
|
- key: ref
|
||||||
expression: "body.ref"
|
expression: "body.ref"
|
||||||
|
- key: number
|
||||||
|
expression: "0"
|
||||||
bindings:
|
bindings:
|
||||||
- name: gitea-binding
|
- name: gitea-binding
|
||||||
template:
|
template:
|
||||||
@ -45,6 +47,8 @@ spec:
|
|||||||
expression: "body.sha"
|
expression: "body.sha"
|
||||||
- key: ref
|
- key: ref
|
||||||
expression: "body.ref"
|
expression: "body.ref"
|
||||||
|
- key: number
|
||||||
|
expression: "0"
|
||||||
bindings:
|
bindings:
|
||||||
- name: gitea-binding
|
- name: gitea-binding
|
||||||
template:
|
template:
|
||||||
|
@ -32,7 +32,7 @@ spec:
|
|||||||
image: gcr.io/kaniko-project/executor:latest
|
image: gcr.io/kaniko-project/executor:latest
|
||||||
env:
|
env:
|
||||||
- name: DOCKER_CONFIG
|
- name: DOCKER_CONFIG
|
||||||
value: /tekton/home/.docker
|
value: /kaniko/.docker
|
||||||
command:
|
command:
|
||||||
- /kaniko/executor
|
- /kaniko/executor
|
||||||
- $(params.EXTRA_ARGS)
|
- $(params.EXTRA_ARGS)
|
||||||
@ -43,3 +43,14 @@ spec:
|
|||||||
- --digest-file=/tekton/results/IMAGE_DIGEST
|
- --digest-file=/tekton/results/IMAGE_DIGEST
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
|
volumeMounts:
|
||||||
|
- name: docker-config
|
||||||
|
mountPath: /kaniko/.docker/config.json
|
||||||
|
subPath: config.json
|
||||||
|
volumes:
|
||||||
|
- name: docker-config
|
||||||
|
secret:
|
||||||
|
secretName: docker-config
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user