Danny Bessems
4deac9ab13
All checks were successful
continuous-integration/drone/push Build is passing
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
kind: pipeline
|
|
type: kubernetes
|
|
name: Container image
|
|
|
|
steps:
|
|
- name: Build & publish (Harbor)
|
|
depends_on:
|
|
- clone
|
|
image: plugins/kaniko
|
|
context: .
|
|
settings:
|
|
repo: bv11-cr01.bessems.eu/library/json-server
|
|
registry: https://bv11-cr01.bessems.eu/v2/
|
|
tags: latest
|
|
username:
|
|
from_secret: harbor_username
|
|
password:
|
|
from_secret: harbor_password
|
|
- name: Build & publish (Dockerhub)
|
|
depends_on:
|
|
- clone
|
|
image: plugins/kaniko
|
|
context: .
|
|
settings:
|
|
repo: index.docker.io/djpbessems/json-server
|
|
registry: https://index.docker.io/v1/
|
|
tags: latest
|
|
username:
|
|
from_secret: docker_username
|
|
password:
|
|
from_secret: docker_password
|
|
|
|
---
|
|
kind: pipeline
|
|
type: kubernetes
|
|
name: Helm chart (Gitea)
|
|
|
|
steps:
|
|
- name: Package & publish
|
|
image: bv11-cr01.bessems.eu/proxy/alpine/helm
|
|
commands:
|
|
- |
|
|
helm package ./charts/json-server
|
|
- |
|
|
helm plugin install https://github.com/chartmuseum/helm-push
|
|
- |
|
|
helm repo add \
|
|
--username $GIT_USERNAME \
|
|
--password $GIT_APIKEY \
|
|
spamasaurus \
|
|
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/helm
|
|
- |
|
|
helm cm-push \
|
|
json-server-*.tgz \
|
|
spamasaurus
|
|
environment:
|
|
GIT_APIKEY:
|
|
from_secret: git_apikey
|
|
GIT_USERNAME: djpbessems
|