diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2feffd96fcada0cd8e1c6754dd8439d78203a1d..ccd82aaec4c09596c012d5ed3d68f93940a6b4f2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,16 +1,9 @@ -# All available Hugo versions are listed here: https://gitlab.com/pages/hugo/container_registry -#image: registry.gitlab.com/pages/hugo:latest image: hugo:latest variables: GIT_SUBMODULE_STRATEGY: recursive before_script: - # - eval $(ssh-agent -s) - # - mkdir -p ~/.ssh - # - chmod 700 ~/.ssh - # - echo "SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - # - 'echo -e "Host *\n\tStrictHostKeyChecking no \n\n" > ~/.ssh/config' - eval `ssh-agent` - ssh-add <(echo "$SSH_PRIVATE_KEY") @@ -28,13 +21,11 @@ create: - git config --global user.name $GITLAB_USER_NAME - git add content/post/$FILENAME.md - 'git commit -m "new content file creation: post/$FILENAME.md"' -# - ssh-keyscan www-intra.cns.s.u-tokyo.ac.jp >> ~/.ssh/known_hosts - git -c core.sshCommand="ssh -oStrictHostKeyChecking=no" push gitlab@www-intra.cns.s.u-tokyo.ac.jp:root/cns-hp.git HEAD:${CI_COMMIT_REF_NAME} - fi only: - draft_article - - '13-gitlab-ci-archetypes-gui' - + test: script: - hugo