blog/.concourse/tasks/image.yml

28 lines
637 B
YAML
Raw Normal View History

2022-12-23 14:10:41 +00:00
---
platform: linux
image_resource:
name: kaniko-debug
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:
- -ce
- |
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/blog:latest \
2022-12-30 19:29:08 +00:00
--destination code.icb4dc0.de/prskr/blog:$(cat .git/ref) \
2022-12-23 14:10:41 +00:00
--context .