updated helm and deployment

This commit is contained in:
2026-07-30 11:04:40 +02:00
parent de8881b239
commit a3348f4bd4
5 changed files with 84 additions and 3 deletions
+18 -3
View File
@@ -85,7 +85,22 @@ jobs:
deploy-container:
runs-on: ubuntu-latest
needs: build-image
steps:
- name: Temp
run: |
echo "TEMP"
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: 'Deploy'
uses: deliverybot/helm@v1
with:
release: spearhead-docs
namespace: spearhead-docs
chart: '.helm'
value-files: >-
[
".helm/values.yaml"
]
env:
KUBECONFIG_FILE: ${{ secrets.KUBECONFIG_CONTENT }}
+24
View File
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: ${{ .Values.app }}
labels:
app: ${{ .Values.app }}
namespace: spearhead-docs
spec:
replicas: 1
selector:
matchLabels:
app: ${{ .Values.app }}
template:
metadata:
labels:
app: ${{ .Values.app }}
spec:
containers:
- name: ${{ .Values.app }}
image: ${{ .Values.image.registry }}/${{ .Values.image.repository }}:${{ .Values.image.tag }}
ports:
- containerPort: ${{ .Values.ports.containerPort }}
View File
+31
View File
@@ -0,0 +1,31 @@
# apiVersion: v1
# kind: Service
# apiVersion: networking.k8s.io/v1
# kind: Ingress
# metadata:
# name: docker-registry-ingress
# namespace: docker-registry
# annotations:
# cert-manager.io/cluster-issuer: "internal-ca-issuer"
# nginx.ingress.kubernetes.io/proxy-body-size: "0"
# spec:
# ingressClassName: nginx
# tls:
# - secretName: registry-tls
# hosts:
# - registry.dutchie031.net
# rules:
# - host: registry.dutchie031.net
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: docker-registry
# port:
# number: 5000
+11
View File
@@ -0,0 +1,11 @@
app: spearhead-docs
image:
registry: registry.dutchie031.net
repository: spearhead-docs
tag: latest
ports:
containerPort: 80