Commit 6bc33e2d authored by Valvin's avatar Valvin Committed by Valvin

Update .gitlab-ci.yml

parent cdb3b8ad
Pipeline #82842 passed with stages
in 18 seconds
...@@ -6,9 +6,15 @@ image: registry.gitlab.com/pages/hugo:latest ...@@ -6,9 +6,15 @@ image: registry.gitlab.com/pages/hugo:latest
.build_template: &build_template .build_template: &build_template
script: script:
- apk add imagemagick - apk add imagemagick openssh-client bash
- hugo - hugo
- sh .gen_thumb.sh - sh .gen_thumb.sh
- mkdir "${HOME}/.ssh"
- chmod 700 "${HOME}/.ssh"
- if [ ! -z ${DEPLOYEMENT_KNOWN_HOSTS+x} ]; then echo -e "${DEPLOYEMENT_KNOWN_HOSTS}" > ${HOME}/.ssh/known_hosts; fi
- eval `ssh-agent -s`
- bash -c "if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then ssh-add <(echo \"${DEPLOYEMENT_KEY}\" | base64 -d); fi"
- if [ ! -z ${DEPLOYEMENT_KEY+x} ]; then echo "put -r public/* /home/${DEPLOYEMENT_USER}" | sftp ${DEPLOYEMENT_USER}@${DEPLOYEMENT_HOST}; fi
test: test:
<<: *build_template <<: *build_template
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment