Extract zola version to a variable

This commit is contained in:
Andreas Reiser 2018-11-22 19:25:34 +01:00
parent a07611d998
commit 644e53a3fd

View file

@ -40,11 +40,13 @@ To do this, create a file called `.gitlab-ci.yml` in the root directory of your
variables: variables:
# This variable will ensure that the CI runner pulls in your theme from the submodule # This variable will ensure that the CI runner pulls in your theme from the submodule
GIT_SUBMODULE_STRATEGY: recursive GIT_SUBMODULE_STRATEGY: recursive
# Specify the zola version you want to use here
ZOLA_VERSION: "v0.5.0"
pages: pages:
script: script:
# Download the zola executable and store it in zola.tar.gz # Download the zola executable and store it in zola.tar.gz
- curl -L https://github.com/getzola/zola/releases/download/v0.5.0/zola-v0.5.0-x86_64-unknown-linux-gnu.tar.gz > zola.tar.gz - curl -L https://github.com/getzola/zola/releases/download/$ZOLA_VERSION/zola-$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz > zola.tar.gz
# Unpack the zola executable # Unpack the zola executable
- tar -xzf zola.tar.gz - tar -xzf zola.tar.gz
# Execute zola build # Execute zola build