Skip to content

Commit

Permalink
👷 Updated to helm
Browse files Browse the repository at this point in the history
  • Loading branch information
LNA-DEV committed Nov 23, 2024
1 parent 3f7449d commit 5f0c69f
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 51 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/HugoBuildAndDeploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,5 @@ jobs:
# Checkout the repository
- uses: actions/checkout@v3

- name: Find and Replace
uses: jacobtomlinson/gha-find-replace@v3
with:
find: "{{RUN_NUMBER}}"
replace: ${{ github.run_number }}
regex: false

# Deploy Kubernetes YAML
- run: kubectl apply -f ./Deployment/Kubernetes.yaml --kubeconfig ${{ steps.write_file.outputs.filePath }}
- run: helm upgrade --install fedodo-org ./helm --kubeconfig ${{ steps.write_file.outputs.filePath }} --set runNumber=${{ github.run_number }}
41 changes: 0 additions & 41 deletions .github/workflows/HugoBuildDev.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions helm/.helmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
6 changes: 6 additions & 0 deletions helm/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: v2
name: fedodo-homepage
description: A Helm chart for Kubernetes
type: application
version: 0.0.1
appVersion: 0.0.1
6 changes: 4 additions & 2 deletions Deployment/Kubernetes.yaml → helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,14 @@ spec:
spec:
containers:
- name: fedodo-home
image: fedodo/fedodo-home:{{RUN_NUMBER}}
image: fedodo/fedodo-home:{{ .Values.runNumber }}
imagePullPolicy: Always
resources:
requests:
memory: "128Mi"
cpu: "50m"
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
name: port-http
Expand Down
4 changes: 4 additions & 0 deletions helm/templates/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: fedodo-org
1 change: 1 addition & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
runNumber: 0

0 comments on commit 5f0c69f

Please sign in to comment.