Move Hugo version to variable in CI
This commit is contained in:
parent
3fba603d5a
commit
d17b5f0d60
@ -1,15 +1,15 @@
|
|||||||
variables:
|
variables:
|
||||||
GIT_SUBMODULE_STRATEGY: recursive
|
GIT_SUBMODULE_STRATEGY: recursive
|
||||||
|
HUGO_VERSION: 0.49.2
|
||||||
|
|
||||||
build site:
|
build site:
|
||||||
stage: build
|
stage: build
|
||||||
before_script:
|
before_script:
|
||||||
- apk --no-cache add ca-certificates wget openssh-client
|
- apk --no-cache add ca-certificates wget openssh-client
|
||||||
- update-ca-certificates
|
- update-ca-certificates
|
||||||
- wget https://github.com/gohugoio/hugo/releases/download/v0.49.2/hugo_0.49.2_Linux-64bit.tar.gz
|
- wget https://github.com/gohugoio/hugo/releases/download/v$HUGO_VERSION/hugo_$HUGO_VERSION_Linux-64bit.tar.gz
|
||||||
- tar xf hugo_0.49.2_Linux-64bit.tar.gz -C /usr/local/bin
|
- tar xf hugo_0.49.2_Linux-64bit.tar.gz -C /usr/local/bin
|
||||||
script:
|
script:
|
||||||
- find .
|
|
||||||
- /usr/local/bin/hugo -d tango.hodakov.me
|
- /usr/local/bin/hugo -d tango.hodakov.me
|
||||||
artifacts:
|
artifacts:
|
||||||
untracked: true
|
untracked: true
|
||||||
|
Loading…
Reference in New Issue
Block a user