Add back bascht.com branch ref and remove GitLab CI yaml
This commit is contained in:
parent
59bc6b73b5
commit
8e2c2b5da1
|
@ -22,7 +22,7 @@ jobs:
|
|||
run: hugo --minify -d public_html
|
||||
|
||||
- name: SSH setup
|
||||
if: github.ref == ''
|
||||
if: github.ref == 'bascht.com'
|
||||
env:
|
||||
DEPLOY_KEY: ${{ secrets.deploy_key }}
|
||||
KNOWN_HOSTS: ${{ secrets.known_hosts }}
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
stages:
|
||||
- build
|
||||
- deploy
|
||||
|
||||
"Build Site":
|
||||
image:
|
||||
name: jojomi/hugo:0.59
|
||||
entrypoint: [""]
|
||||
stage: build
|
||||
artifacts:
|
||||
paths:
|
||||
- public_html/
|
||||
script:
|
||||
- hugo version
|
||||
- hugo -d public_html
|
||||
deploy:
|
||||
stage: deploy
|
||||
image: instrumentisto/rsync-ssh:latest
|
||||
script:
|
||||
- mkdir "${HOME}/.ssh"
|
||||
- cp "${SSH_HOST_KEY}" "${HOME}/.ssh/known_hosts"
|
||||
- chmod 0500 "${SSH_PRIVATE_KEY}"
|
||||
- rsync -hrvz --delete --dry-run --exclude=_ -e "ssh -i ${SSH_PRIVATE_KEY} -l bascht" public_html/ "${SSH_USER_HOST_LOCATION}"
|
||||
- rsync -hrvz --delete --exclude=_ -e "ssh -i ${SSH_PRIVATE_KEY} -l bascht" public_html/ "${SSH_USER_HOST_LOCATION}"
|
Loading…
Reference in New Issue