Using curl instead of installing and using wget due to no root for init container
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-04-01 01:03:40 -04:00
parent f2cdf6b752
commit a5f3acc903

View File

@@ -28,8 +28,8 @@ ingress:
initContainers:
- name: init-con
image: debian
tag: stable
image: alpine
tag: curl
command: |
cp /hugo.conf/setup_hugo.sh /tmp/ &&
chmod +x /tmp/setup_hugo.sh &&
@@ -69,11 +69,8 @@ volumes:
# yamllint disable rule:line-length
fileContent: |
#!/usr/bin/env bash
# Pre-reqs
apt-get update && apt-get install -y wget git
# Setting up Hugo
wget https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.tar.gz &&
curl -O https://github.com/gohugoio/hugo/releases/download/v0.145.0/hugo_0.145.0_linux-arm64.tar.gz &&
tar -xzf hugo_0.111.3_Linux-64bit.tar.gz &&
chmod +x hugo &&
mv hugo /usr/local/bin && cd / &&