feat(ci): concourse pipeline
This commit is contained in:
parent
1f137aae3c
commit
eddfb2b65b
2 changed files with 49 additions and 0 deletions
24
.concourse/pipeline.yml
Normal file
24
.concourse/pipeline.yml
Normal 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
|
25
.concourse/tasks/go-ci.yml
Normal file
25
.concourse/tasks/go-ci.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/inetmock/ci-images/go-ci:latest --context go-ci/
|
Loading…
Reference in a new issue