feat(ci): move to Drone CI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Peter 2023-02-22 21:40:20 +01:00
parent 111be681b5
commit 2dd66ab68e
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
3 changed files with 21 additions and 49 deletions

View file

@ -1,24 +0,0 @@
---
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

@ -1,25 +0,0 @@
---
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/

21
.drone.yml Normal file
View file

@ -0,0 +1,21 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: go-ci
image: gcr.io/kaniko-project/executor:debug
network_mode: host
commands:
- >
echo "{\"auths\": {\"https://code.icb4dc0.de\": {\"auth\" : \"$(printf '%s:%s' $$GITEA_USER $$GITEA_TOKEN | base64)\" }}}" > /kaniko/.docker/config.json
- /kaniko/executor --destination "$${IMAGE_REPO}:$${IMAGE_TAG}" --context "$${BUILD_CONTEXT}"
environment:
GITEA_USER: prskr
GITEA_TOKEN:
from_secret: gitea_token
IMAGE_REPO: code.icb4dc0.de/inetmock/ci-images/go-ci
IMAGE_TAG: latest
BUILD_CONTEXT: go-ci/