diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 20e6015..664e94d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,26 +1,25 @@ image: ubuntu before_script: - | apt-get update -qq DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade --yes apt-get install --yes git stages: - deploy deploy: stage: deploy script: # Register private key as GitLab CI's environmental variable. # You can encode base64 by: `cat /path/to/id_rsa | base64 --wrap=0` - | mkdir --parents ~/.ssh echo "$SSH_PRIVATE_KEY" | base64 --decode > ~/.ssh/id_rsa - chmod 700 ~/.ssh chmod 600 ~/.ssh/id_rsa echo -e "Host git.kde.org\n\tStrictHostKeyChecking no\n" > ~/.ssh/config - git remote add production git@git.kde.org:websites/jp-kde-org.git - git push production master only: - master