2022-12-30 13:39:09 +00:00
|
|
|
---
|
|
|
|
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))
|
2023-02-17 17:06:31 +00:00
|
|
|
BUILD_CONTEXT: ((build_context))
|
|
|
|
IMAGE_REPO: ((image_repo))
|
|
|
|
IMAGE_TAG: latest
|
2022-12-30 13:39:09 +00:00
|
|
|
|
|
|
|
run:
|
|
|
|
path: sh
|
|
|
|
args:
|
|
|
|
- -cex
|
|
|
|
- |
|
|
|
|
echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $GITEA_USER $GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json
|
|
|
|
|
2023-02-17 17:06:31 +00:00
|
|
|
/kaniko/executor --destination "${IMAGE_REPO}:${IMAGE_TAG}" --context "${BUILD_CONTEXT}"
|