removed test ci pipeline

This commit is contained in:
Hamza Ahmed
2021-12-02 22:15:04 +00:00
parent d7dd6b33b4
commit 16833a4f2c
-30
View File
@@ -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