all repos — zola-bearblog @ 6069e04c138643f6b001b954b8dcca9a2040559b

Port of bear blog theme to zola

Update GitLab CI configuration

Alan Pearce
commit

6069e04c138643f6b001b954b8dcca9a2040559b

parent

bf4fc293c9d20b153c2cf907d18d3a4c58398d40

1 file changed, 10 insertions(+), 20 deletions(-)

changed files
M .gitlab-ci.yml.gitlab-ci.yml
@@ -9,9 +9,9 @@ # The runner will be able to pull your Zola theme when the strategy is
# set to "recursive". GIT_SUBMODULE_STRATEGY: "recursive" - # If you don't set a version here, your site will be built with the latest - # version of Zola available in GitHub releases. - # Use the semver (x.y.z) format to specify a version. For example: "0.17.2" or "0.18.0". + # Make sure you specify a version of Zola here. + # Use the semver format (x.y.z) to specify a version. + # For example: "0.17.2" or "0.18.0". ZOLA_VERSION: description: "The version of Zola used to build the site." value: ""
@@ -20,21 +20,12 @@ pages:
stage: deploy script: - | - apt-get update --assume-yes && apt-get install --assume-yes --no-install-recommends wget ca-certificates - if [ $ZOLA_VERSION ]; then - zola_url="https://github.com/getzola/zola/releases/download/v$ZOLA_VERSION/zola-v$ZOLA_VERSION-x86_64-unknown-linux-gnu.tar.gz" - if ! wget --quiet --spider $zola_url; then - echo "A Zola release with the specified version could not be found."; - exit 1; - fi - else - github_api_url="https://api.github.com/repos/getzola/zola/releases/latest" - zola_url=$( - wget --output-document - $github_api_url | - grep "browser_download_url.*linux-gnu.tar.gz" | - cut --delimiter : --fields 2,3 | - tr --delete "\" " - ) + apt-get update + DEBIAN_FRONTEND=noninteractive apt-get install --assume-yes --no-install-recommends wget ca-certificates + zola_url="https://github.com/getzola/zola/releases/download/v${ZOLA_VERSION}/zola-v${ZOLA_VERSION}-x86_64-unknown-linux-gnu.tar.gz" + if ! wget --quiet --spider $zola_url; then + echo "A Zola release with the specified version could not be found." + exit 1 fi wget $zola_url tar -xzf *.tar.gz
@@ -42,8 +33,7 @@ ./zola build
artifacts: paths: - # This is the directory whose contents will be deployed to the GitLab Pages - # server. + # This is the directory whose contents will be deployed to the GitLab Pages server. # GitLab Pages expects a directory with this name by default. - public