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
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -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 / &&
|
||||
|
||||
Reference in New Issue
Block a user