diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c6898bb..e69de29 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,30 +0,0 @@ -stages: - - build - - deploy -build: - stage: build - image: ghcr.io/4hmz4/docker-hugo:main - script: - - git submodule update --init --recursive - - hugo -d public_html -b "${BLOG_URL}" - cache: - paths: - - public_html - artifacts: - paths: - - public_html - only: - - main -deploy: - stage: deploy - image: ghcr.io/4hmz4/docker-rsync-ssh:main - script: - - echo "${SSH_PRIVATE_KEY}" > id_rsa - - chmod 700 id_rsa - - mkdir "${HOME}/.ssh" - - echo "${SSH_HOST_KEY}" > "${HOME}/.ssh/known_hosts" - - rsync -hrvz --delete --exclude=_ -e 'ssh -i id_rsa' public_html/ "${SSH_USER_HOST_LOCATION}" - only: - - main - -