From d51e507c15282b1f7d6935212655b5e3c9fd5867 Mon Sep 17 00:00:00 2001 From: Shoichiro Masuoka Date: Mon, 15 Jul 2019 23:50:49 +0900 Subject: [PATCH] clean up .gitlab-ci.yml w/ file creation by "hugo new" command #13 --- .gitlab-ci.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c2feffd..ccd82aa 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 -- GitLab