2022-02-03 19:47:24 +01:00
|
|
|
variables:
|
|
|
|
GIT_SUBMODULE_STRATEGY: recursive
|
|
|
|
|
2022-02-08 19:56:37 +01:00
|
|
|
before_script:
|
2022-02-12 10:18:29 +01:00
|
|
|
- apk add --no-cache openssh tzdata
|
|
|
|
- cp /usr/share/zoneinfo/Europe/Berlin /etc/localtime
|
2022-02-08 19:56:37 +01:00
|
|
|
- eval $(ssh-agent -s)
|
|
|
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
|
|
|
- mkdir ~/.ssh
|
|
|
|
- chmod 700 ~/.ssh
|
|
|
|
- echo "$SSH_KNOWN_HOSTS" | tr -d '\r' >> ~/.ssh/known_hosts
|
|
|
|
- chmod 644 ~/.ssh/known_hosts
|
|
|
|
|
2022-02-03 19:47:24 +01:00
|
|
|
build:
|
2022-02-08 19:56:37 +01:00
|
|
|
image: silex/emacs:27.2-alpine-ci
|
|
|
|
stage: build
|
|
|
|
script:
|
|
|
|
- emacs -Q --script .build/ox-hugo-build.el
|
|
|
|
- apk add --no-cache hugo rsync
|
|
|
|
- hugo
|
|
|
|
- rsync --archive --verbose --chown=gitlab-ci:www-data --delete --progress -e"ssh -p "$SSH_PORT"" public/ "$SSH_USER"@mmk2410.org:/var/www/mmk2410.org/
|
|
|
|
artifacts:
|
|
|
|
paths:
|
|
|
|
- public
|