From b03b1934686eeeb697ffdbd1ca1d0a63939db558 Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Sat, 2 Apr 2022 13:51:50 +0000 Subject: [PATCH] Update .gitlab-ci.yml to use Gitlab pages all the times. --- .gitlab-ci.yml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 847e853..84820b1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,18 +1,11 @@ image: registry.gitlab.com/pages/hugo/hugo_extended:latest -before_script: - - apk add --update --no-cache git openssh rsync - - git submodule update --init --recursive +variables: + GIT_SUBMODULE_STRATEGY: recursive pages: script: - hugo - - mkdir "${HOME}/.ssh" - - echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts" - - echo "${SSH_PRIVATE_KEY}" > "${HOME}/.ssh/id_rsa" - - chmod 700 "${HOME}/.ssh/id_rsa" - - rsync -hrvz --delete --exclude=_ public/ ariejan@10.0.2.40:/home/ariejan/www/www.devroom.io/ - artifacts: paths: - public