Using Hugo image for init
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -28,7 +28,7 @@ ingress:
|
||||
|
||||
initContainers:
|
||||
- name: init-con
|
||||
image: alpine/curl
|
||||
image: hugomods/hugo
|
||||
tag: latest
|
||||
command: |
|
||||
cp /hugo.conf/setup_hugo.sh /tmp/ &&
|
||||
@@ -69,15 +69,9 @@ volumes:
|
||||
# yamllint disable rule:line-length
|
||||
fileContent: |
|
||||
#!/usr/bin/env sh
|
||||
# Setting up Hugo
|
||||
curl -O 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 &&
|
||||
chmod +x 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 &&
|
||||
git clone https://git.sadmin.pro/DaJeffers/halloween.dajeffers.com.git &&
|
||||
cd halloween.dajeffers.com && 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
|
||||
|
||||
Reference in New Issue
Block a user