ci-images/.drone.yml

25 lines
639 B
YAML
Raw Permalink Normal View History

2023-02-22 20:40:20 +00:00
---
kind: pipeline
type: docker
name: default
2023-07-19 19:37:57 +00:00
platform:
os: linux
arch: arm64
2023-02-22 20:40:20 +00:00
2023-07-19 19:37:57 +00:00
steps:
2023-02-22 20:40:20 +00:00
- 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/