26 lines
556 B
YAML
26 lines
556 B
YAML
|
---
|
||
|
platform: linux
|
||
|
|
||
|
image_resource:
|
||
|
type: registry-image
|
||
|
source:
|
||
|
repository: gcr.io/kaniko-project/executor
|
||
|
tag: debug
|
||
|
|
||
|
inputs:
|
||
|
- name: repo
|
||
|
path: .
|
||
|
|
||
|
params:
|
||
|
GITEA_USER: ((gitea-credentials.user))
|
||
|
GITEA_TOKEN: ((gitea-credentials.token))
|
||
|
|
||
|
run:
|
||
|
path: sh
|
||
|
args:
|
||
|
- -cex
|
||
|
- |
|
||
|
echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $GITEA_USER $GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json
|
||
|
|
||
|
/kaniko/executor --destination code.icb4dc0.de/prskr/ci-images/ko:latest --context ko/
|