1
0
Fork 0

Add back bascht.com branch ref and remove GitLab CI yaml

This commit is contained in:
Sebastian Schulze 2020-07-09 22:49:53 +02:00
parent 59bc6b73b5
commit 8e2c2b5da1
Signed by: bascht
GPG Key ID: 5BCB1D3B4D38A35A
2 changed files with 1 additions and 25 deletions

View File

@ -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 }}

View File

@ -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}"