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: djpbessems 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