2023-04-17 14:11:49 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build image
|
|
|
|
image: gcr.io/kaniko-project/executor:debug
|
2023-04-17 14:48:24 +00:00
|
|
|
network_mode: host
|
2023-04-17 14:11:49 +00:00
|
|
|
commands:
|
|
|
|
- |
|
|
|
|
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/buildr/docs:latest \
|
|
|
|
--destination code.icb4dc0.de/buildr/docs:$DRONE_COMMIT_SHA \
|
|
|
|
--context .
|
|
|
|
environment:
|
|
|
|
GITEA_USER: prskr
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: gitea_token
|