Deploy newer version of Hugo / change env variables

0

Hi. I need to deploy a newer version of Hugo than what gets included (Hugo Static Site Generator v0.51 linux/amd64 BuildDate: 2018-11-07T10:10:13Z) during the Provision stage.

Is it possible to change / overwrite ENV VERSION_HUGO=0.51 set in the Provision stage?

Thanks.

daunce
已提問 5 年前檢視次數 193 次
1 個回答
0

I figured out how to do this. I changed the build settings to:

        - wget https://github.com/gohugoio/hugo/releases/download/v0.55.3/hugo_0.55.3_Linux-64bit.tar.gz 
        - tar -xf hugo_0.55.3_Linux-64bit.tar.gz
        - mv hugo /usr/bin/hugo 
        - rm -rf hugo_0.55.3_Linux-64bit.tar.gz
        - hugo version
        - hugo
daunce
已回答 5 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南