2023-05-10 09:42:08 +00:00
|
|
|
kind: pipeline
|
|
|
|
type: kubernetes
|
2023-05-10 10:18:19 +00:00
|
|
|
name: Container image
|
2023-05-10 09:42:08 +00:00
|
|
|
|
|
|
|
steps:
|
2023-05-10 10:18:19 +00:00
|
|
|
- name: Build & publish (Harbor)
|
|
|
|
depends_on:
|
|
|
|
- clone
|
2023-07-11 07:51:52 +00:00
|
|
|
image: plugins/kaniko
|
2023-05-10 09:42:08 +00:00
|
|
|
context: .
|
|
|
|
settings:
|
2023-07-11 07:57:20 +00:00
|
|
|
repo: bv11-cr01.bessems.eu/library/json-server
|
2023-07-11 08:22:25 +00:00
|
|
|
registry: https://bv11-cr01.bessems.eu/v2/
|
2023-05-10 09:42:08 +00:00
|
|
|
tags: latest
|
|
|
|
username:
|
|
|
|
from_secret: harbor_username
|
|
|
|
password:
|
|
|
|
from_secret: harbor_password
|
2023-05-10 10:18:19 +00:00
|
|
|
- name: Build & publish (Dockerhub)
|
|
|
|
depends_on:
|
|
|
|
- clone
|
2023-07-11 07:51:52 +00:00
|
|
|
image: plugins/kaniko
|
2023-05-10 09:42:08 +00:00
|
|
|
context: .
|
|
|
|
settings:
|
2023-07-11 08:11:31 +00:00
|
|
|
repo: index.docker.io/djpbessems/json-server
|
2023-07-11 08:18:43 +00:00
|
|
|
registry: https://index.docker.io/v1/
|
2023-05-10 09:42:08 +00:00
|
|
|
tags: latest
|
2023-07-11 08:18:43 +00:00
|
|
|
username: djpbessems
|
2023-05-10 09:42:08 +00:00
|
|
|
password:
|
|
|
|
from_secret: docker_password
|
2023-05-10 10:06:38 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
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
|
|
|
|
- |
|
2023-07-11 07:36:55 +00:00
|
|
|
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 \
|
2023-07-11 07:38:41 +00:00
|
|
|
json-server-*.tgz \
|
|
|
|
spamasaurus
|
2023-05-10 10:06:38 +00:00
|
|
|
environment:
|
|
|
|
GIT_APIKEY:
|
|
|
|
from_secret: git_apikey
|
|
|
|
GIT_USERNAME: djpbessems
|