52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
---
|
|
# ----------------------------------------------
|
|
# -- 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
|
|
CUSTOM_TAG: v2.6.5-XOR-4.0.0beta08
|
|
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
|
|
CUSTOM_TAG: v2.6.5
|
|
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
|