~jplatte/blog.turbo.fish

7323ce105a9b3628069e7283275b99f1db8d10b7 — Jonas Platte 3 months ago 7f9362f
Use archlinux zola package for CI/CD
1 files changed, 2 insertions(+), 8 deletions(-)

M .build.yml
M .build.yml => .build.yml +2 -8
@@ 1,21 1,16 @@
image: archlinux
packages:
  - zola
secrets:
  - 3d68c1a1-174a-49be-b03b-af1a5d4bbd99
tasks:
  - get_zola: |
      version='v0.13.0'
      archive="zola-${version}-x86_64-unknown-linux-gnu.tar.gz"
      curl -L "https://github.com/getzola/zola/releases/download/${version}/${archive}" -o "$archive"
      tar xf "$archive"
  - build: |
      PATH="$PATH:$PWD"
      cd blog.turbo.fish
      zola build
  - deploy: |
      echo 'Host *' >> ~/.ssh/config
      echo '    StrictHostKeyChecking=no' >> ~/.ssh/config

      PATH="$PATH:$PWD"
      cd blog.turbo.fish/public

      git config --global user.email "noreply@turbo.fish"


@@ 27,6 22,5 @@ tasks:
  # Links can break in old articles. This should be checked in CI, but should
  # not break publishing new articles, so it is done after deploying the site.
  - check_links: |
      PATH="$PATH:$PWD"
      cd blog.turbo.fish
      zola check