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:
|
initContainers:
|
||||||
- name: init-con
|
- name: init-con
|
||||||
image: debian
|
image: alpine
|
||||||
tag: stable
|
tag: curl
|
||||||
command: |
|
command: |
|
||||||
cp /hugo.conf/setup_hugo.sh /tmp/ &&
|
cp /hugo.conf/setup_hugo.sh /tmp/ &&
|
||||||
chmod +x /tmp/setup_hugo.sh &&
|
chmod +x /tmp/setup_hugo.sh &&
|
||||||
@@ -69,11 +69,8 @@ volumes:
|
|||||||
# yamllint disable rule:line-length
|
# yamllint disable rule:line-length
|
||||||
fileContent: |
|
fileContent: |
|
||||||
#!/usr/bin/env bash
|
#!/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 &&
|
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 &&
|
tar -xzf hugo_0.111.3_Linux-64bit.tar.gz &&
|
||||||
chmod +x hugo &&
|
chmod +x hugo &&
|
||||||
mv hugo /usr/local/bin && cd / &&
|
mv hugo /usr/local/bin && cd / &&
|
||||||
|
|||||||
Reference in New Issue
Block a user