diff --git a/.frontmatter/database/taxonomyDb.json b/.frontmatter/database/taxonomyDb.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.frontmatter/database/taxonomyDb.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5c41f01 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.hugo_build.lock \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..1601d35 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "frontMatter.framework.id": "hugo", + "frontMatter.content.publicFolder": "static", + "frontMatter.preview.host": "http://localhost:1313", + "yaml.schemas": { + "https://raw.githubusercontent.com/woodpecker-ci/woodpecker/main/pipeline/frontend/yaml/linter/schema/schema.json": "file:///home/andrew/websites/blog-cybershell-xyz/.woodpecker/deploy.yml" + } +} \ No newline at end of file diff --git a/.woodpecker/deploy.yml b/.woodpecker/deploy.yml new file mode 100644 index 0000000..8d0e5e9 --- /dev/null +++ b/.woodpecker/deploy.yml @@ -0,0 +1,27 @@ +steps: + clone: + image: hugomods/hugo:exts + commands: + - git submodule foreach 'git fetch origin; git checkout $(git describe --tags `git rev-list --tags --max-count=1`);' + - hugo + + deploy: + image: codingkoopa/git-rsync-openssh + commands: + - echo "nameserver 1.1.1.1" > /etc/resolv.conf + - mkdir ~/.ssh && chmod -R 700 ~/.ssh + # - apt update -y && apt install openssh-client rsync -y + - echo "$SSH_HOST_KEY" > ~/.ssh/known_hosts + - echo -e '#!/bin/sh\necho "$SSH_PASSPHRASE"' | tr -d '\r' > ~/.ssh/.print_ssh_password + # - cat ~/.ssh/.print_ssh_password + - chmod 700 ~/.ssh/.print_ssh_password + - eval $(ssh-agent -s) + - echo "$SSH_DEPLOY_KEY" | tr -d '\r' | DISPLAY=":0.0" SSH_ASKPASS=~/.ssh/.print_ssh_password setsid ssh-add - + - rsync -atv --delete --progress public/ cybershell@blog.cybershell.xyz:/home/cybershell/blog.cybershell.xyz + secrets: [ ssh_host_key, ssh_deploy_key, ssh_passphrase ] + + +when: + - event: push + branch: master +