diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 07cee38..47011bb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,13 +4,12 @@ variables: JEKYLL_ENV: production LC_ALL: en_US.UTF-8 -before_script: - - apk add --no-cache g++ musl-dev make - - apk add --no-cache libstdc++ - - bundle install --path=vendor/ - build site: stage: build + before_script: + - apk add --no-cache g++ musl-dev make + - apk add --no-cache libstdc++ + - bundle install --path=vendor/ script: - bundle exec jekyll build -d lorchess.ru @@ -19,6 +18,7 @@ deploy site: only: - master before_script: + - apk add --no-cache openssh-client - mkdir -p ~/.ssh - echo "$DEPLOY_SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa