feat(ci): concourse pipeline

This commit is contained in:
Peter 2023-01-10 20:26:36 +01:00
parent 1f137aae3c
commit eddfb2b65b
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
2 changed files with 49 additions and 0 deletions

24
.concourse/pipeline.yml Normal file
View file

@ -0,0 +1,24 @@
---
resources:
- name: weekly
type: time
source:
interval: 168h
- name: ci-images.git
type: git
icon: github
source:
uri: https://code.icb4dc0.de/inetmock/ci-images.git
jobs:
- name: go-ci
plan:
- in_parallel:
- get: weekly
trigger: true
- get: ci-images.git
trigger: true
- task: go-ci-image
file: ci-images.git/.concourse/tasks/go-ci.yml
input_mapping:
repo: ci-images.git

View 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/inetmock/ci-images/go-ci:latest --context go-ci/