Drone -> Kaniko
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Nicolai Ort 2022-10-10 17:05:21 +02:00
parent e544df0e19
commit 6fe82686f2
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F
1 changed files with 10 additions and 25 deletions

View File

@ -12,50 +12,35 @@ get:
path: odit-registry-builder
name: password
---
kind: secret
name: git_ssh
get:
path: odit-git-bot
name: sshkey
---
kind: pipeline
type: kubernetes
name: build:latest
steps:
- name: run full license export
depends_on: ["clone"]
image: node:alpine
commands:
- yarn
- yarn licenses:export
- name: push new licenses file to repo
depends_on: ["run full license export"]
image: appleboy/drone-git-push
settings:
branch: main
commit: true
commit_message: new license file version [CI SKIP]
author_email: bot@odit.services
remote: git@git.odit.services:lfk/docs.git
ssh_key:
from_secret: git_ssh
- name: build latest
image: plugins/docker
depends_on: [clone]
- name: docker release
image: registry.odit.services/library/drone-kaniko
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
repo: registry.odit.services/lfk/docs
build_args:
- NPM_REGISTRY_DOMAIN:
from_secret: npmjs_domain
- NPM_REGISTRY_TOKEN:
from_secret: npmjs_token
repo: lfk/docs
tags:
- latest
cache: true
registry: registry.odit.services
mtu: 1000
trigger:
branch:
- main
event:
- push
- push