feat: add ko image
This commit is contained in:
parent
188743b845
commit
01096b421d
3 changed files with 49 additions and 4 deletions
|
@ -14,17 +14,33 @@ resources:
|
||||||
repository: caddy
|
repository: caddy
|
||||||
access_token: ((github-credentials.token))
|
access_token: ((github-credentials.token))
|
||||||
|
|
||||||
|
- name: ko-release
|
||||||
|
type: github-release
|
||||||
|
icon: github
|
||||||
|
source:
|
||||||
|
owner: ko-build
|
||||||
|
repository: ko
|
||||||
|
access_token: ((github-credentials.token))
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
- name: images
|
- name: caddy
|
||||||
plan:
|
plan:
|
||||||
- get: ci-images.git
|
- get: ci-images.git
|
||||||
trigger: true
|
trigger: true
|
||||||
- get: caddy-release
|
- get: caddy-release
|
||||||
trigger: true
|
trigger: true
|
||||||
params:
|
|
||||||
globs:
|
|
||||||
- caddy_*_linux_amd64.tar.gz
|
|
||||||
- task: caddy
|
- task: caddy
|
||||||
file: ci-images.git/.concourse/tasks/caddy.yml
|
file: ci-images.git/.concourse/tasks/caddy.yml
|
||||||
input_mapping:
|
input_mapping:
|
||||||
repo: ci-images.git
|
repo: ci-images.git
|
||||||
|
|
||||||
|
- name: ko
|
||||||
|
plan:
|
||||||
|
- get: ci-images.git
|
||||||
|
trigger: true
|
||||||
|
- get: ko-release
|
||||||
|
trigger: true
|
||||||
|
- task: ko
|
||||||
|
file: ci-images.git/.concourse/tasks/ko.yml
|
||||||
|
input_mapping:
|
||||||
|
repo: ci-images.git
|
25
.concourse/tasks/ko.yml
Normal file
25
.concourse/tasks/ko.yml
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
---
|
||||||
|
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/
|
4
ko/Dockerfile
Normal file
4
ko/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
FROM docker.io/alpine:edge
|
||||||
|
|
||||||
|
RUN echo https://dl-cdn.alpinelinux.org/alpine/edge/testing/ >> /etc/apk/repositories && \
|
||||||
|
apk add -U --no-cache ko
|
Loading…
Reference in a new issue