2023-08-09 17:49:38 +00:00
|
|
|
---
|
|
|
|
# ----------------------------------------------
|
|
|
|
# -- Build an image and push it to the registry
|
|
|
|
# ----------------------------------------------
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: Build the builder
|
|
|
|
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- push
|
|
|
|
branch:
|
|
|
|
- main
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Build openvpn xor amd64
|
|
|
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:555262114ea81f6f286010474527f419b56d33a3
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
CONTAINERFILE: ./containerfiles/Containerfile-XOR
|
2023-08-24 07:22:18 +00:00
|
|
|
CUSTOM_TAG: v2.6.5-XOR-4.0.0beta08
|
2023-08-09 17:49:38 +00:00
|
|
|
commands:
|
|
|
|
- build-container
|
|
|
|
|
|
|
|
- name: Build openvpn amd64
|
|
|
|
image: git.badhouseplants.net/badhouseplants/badhouseplants-builder:555262114ea81f6f286010474527f419b56d33a3
|
|
|
|
privileged: true
|
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
CONTAINERFILE: ./containerfiles/Containerfile
|
2023-08-24 07:22:18 +00:00
|
|
|
CUSTOM_TAG: v2.6.5
|
2023-08-09 17:49:38 +00:00
|
|
|
commands:
|
|
|
|
- build-container
|
|
|
|
|
|
|
|
- name: Publish the Helm chart
|
|
|
|
image: alpine/helm
|
|
|
|
depends_on:
|
|
|
|
- Build openvpn xor amd64
|
|
|
|
- Build openvpn amd64
|
|
|
|
environment:
|
|
|
|
GITEA_TOKEN:
|
|
|
|
from_secret: GITEA_TOKEN
|
|
|
|
commands:
|
|
|
|
- cd helm
|
|
|
|
- helm plugin install https://github.com/chartmuseum/helm-push
|
|
|
|
- helm package . -d chart-package
|
|
|
|
- helm repo add --username allanger --password $GITEA_TOKEN openvpn https://git.badhouseplants.net/api/packages/allanger/helm
|
|
|
|
- helm cm-push "./chart-package/$(ls chart-package)" openvpn
|