Skip to content

Commit

Permalink
👷 Prepared dev ci
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Nov 23, 2024
1 parent 565c2f6 commit 071b973
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/HugoBuildDev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,22 @@ jobs:

- name: Push the image to dockerhub
run: docker push lnadev/${{ env.CONTAINER-NAME }}:dev

DeployContainer:
needs: ReleaseDEV
runs-on: ubuntu-latest

steps:
# Download Secure-File
- name: base64-to-file
id: write_file
uses: timheuer/[email protected]
with:
fileName: "custom-config"
encodedString: ${{ secrets.KUBECTL_CONFIG }}

# Checkout the repository
- uses: actions/checkout@v3

# Deploy Kubernetes YAML
- run: helm upgrade --install fi-pv-dev ./helm --kubeconfig ${{ steps.write_file.outputs.filePath }} --set runNumber=dev,domain=dev.fachinformatikerpruefungsvorbereitung.de,namespace=fi-pv-dev,production=false
6 changes: 3 additions & 3 deletions helm/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
annotations:
cert-manager.io/cluster-issuer: letsencrypt
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.middlewares: default-redirectscheme@kubernetescrd
traefik.ingress.kubernetes.io/router.middlewares: {{ .Values.namespace }}-redirectscheme@kubernetescrd
spec:
tls:
- hosts:
Expand Down Expand Up @@ -69,7 +69,7 @@ spec:
number: 80

---
apiVersion: traefik.containo.us/v1alpha1
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: redirectscheme
Expand All @@ -81,7 +81,7 @@ spec:
permanent: true

---
apiVersion: traefik.containo.us/v1alpha1
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: redirectschemefipv
Expand Down

0 comments on commit 071b973

Please sign in to comment.