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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则