This commit is contained in:
@@ -33,7 +33,7 @@ steps:
|
|||||||
- kubectl config set clusters.clusterprism.insecure-skip-tls-verify true
|
- kubectl config set clusters.clusterprism.insecure-skip-tls-verify true
|
||||||
- helm repo add onechart https://chart.onechart.dev
|
- helm repo add onechart https://chart.onechart.dev
|
||||||
- >
|
- >
|
||||||
helm upgrade halloween-static-site --install onechart/static-site
|
helm upgrade halloween-static-site --install onechart/onechart
|
||||||
-n halloween -f clusterprism_halloween_values.yaml
|
-n halloween -f clusterprism_halloween_values.yaml
|
||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
|
|||||||
@@ -16,6 +16,10 @@ securityContext:
|
|||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: "RuntimeDefault"
|
type: "RuntimeDefault"
|
||||||
|
|
||||||
|
image:
|
||||||
|
repository: nginx
|
||||||
|
tag: latest
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
host: halloween.dajeffers.com
|
host: halloween.dajeffers.com
|
||||||
ingressClassName: nginx
|
ingressClassName: nginx
|
||||||
@@ -25,6 +29,12 @@ ingress:
|
|||||||
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: init-con
|
- name: init-con
|
||||||
|
image: debian
|
||||||
|
tag: stable-slim
|
||||||
|
command: |
|
||||||
|
cp /hugo.conf/setup_hugo.sh . &&
|
||||||
|
chmod +x setup_hugo.sh &&
|
||||||
|
./setup_hugo.sh
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: false
|
privileged: false
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
@@ -42,19 +52,33 @@ resources:
|
|||||||
cpu: 200m
|
cpu: 200m
|
||||||
memory: 200Mi
|
memory: 200Mi
|
||||||
|
|
||||||
# values to build and deploy static sites
|
volumes:
|
||||||
gitCloneUrl: ssh://git@git.sadmin.pro:2222/DaJeffers/halloween.dajeffers.com.git
|
- name: init-hugo
|
||||||
# yamllint disable rule:line-length
|
fileName: setup_hugo.sh
|
||||||
buildScript: |
|
path: /hugo.conf
|
||||||
# !/usr/bin/env bash
|
subPath: setup_hugo.sh
|
||||||
# pre -reqs
|
# yamllint disable rule:line-length
|
||||||
apt-get update && apt-get install -y wget
|
fileContent: |
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
# Pre-reqs
|
||||||
|
apt-get update && apt-get install -y wget git
|
||||||
|
|
||||||
# Setting up Hugo
|
# Setting up Hugo
|
||||||
wget https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.tar.gz &&
|
wget https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.tar.gz &&
|
||||||
tar -xzf hugo_0.145.0_linux-arm64.tar.gz &&
|
tar -xzf hugo_0.111.3_Linux-64bit.tar.gz &&
|
||||||
chmod +x hugo
|
chmod +x hugo &&
|
||||||
./hugo
|
mv hugo /usr/local/bin && cd / &&
|
||||||
|
|
||||||
|
# Getting and building Hugo site source
|
||||||
|
git clone https://github.com/gimlet-io/hugo-site.git &&
|
||||||
|
cd hugo-site && hugo &&
|
||||||
|
|
||||||
|
# Copying the built Hugo site to the shared volume for serving with Nginx
|
||||||
|
mkdir -p /usr/share/nginx/html && cp -r ./public/. /usr/share/nginx/html
|
||||||
|
# yamllint enable rule:line-length
|
||||||
|
- name: shared-static-files
|
||||||
|
emptyDir: true
|
||||||
|
path: /usr/share/nginx/html
|
||||||
|
|
||||||
# yamllint enable rule:line-length
|
|
||||||
vars:
|
vars:
|
||||||
TZ: 'America/New_York'
|
TZ: 'America/New_York'
|
||||||
|
|||||||
Reference in New Issue
Block a user