From d91af4664b9f307d01f00e5f13cfeeab4a59a0df Mon Sep 17 00:00:00 2001 From: Ari Yeger Date: Thu, 3 Jul 2025 13:44:17 -0400 Subject: [PATCH] deploy main site --- .gitea/workflows/deploy.yml | 35 +++++++++++++++++++++++++++++++++++ .gitignore | 11 +++++++++++ .static | 0 main-page.html => index.html | 0 4 files changed, 46 insertions(+) create mode 100644 .gitea/workflows/deploy.yml create mode 100644 .gitignore create mode 100644 .static rename main-page.html => index.html (100%) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml new file mode 100644 index 0000000..bf89c8e --- /dev/null +++ b/.gitea/workflows/deploy.yml @@ -0,0 +1,35 @@ +name: Deploy main page + +on: + push: + branches: [ master, main ] + +jobs: + deploy: + runs-on: [ self-hosted ] + container: + image: node:24 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Set up SSH + run: | + mkdir -p /home/node/.ssh + echo "$SSH_PRIVATE_KEY" > /home/node/.ssh/dokku-deploy + chmod 600 /home/node/.ssh/dokku-deploy + ssh-keyscan -H 192.168.1.46 >> /home/node/.ssh/known_hosts + env: + SSH_PRIVATE_KEY: ${{ secrets.DOKKU_DEPLOY_KEY }} + + - name: Deploy to Dokku + env: + GIT_SSH_COMMAND: 'ssh -o UserKnownHostsFile=/home/node/.ssh/known_hosts' + run: | + eval $(ssh-agent -s) + ssh-add /home/node/.ssh/dokku-deploy + git remote add dokku dokku@192.168.1.46:main-page + git push dokku master --force \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..32b877b --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +/tmp +/out-tsc + +/node_modules +npm-debug.log* +yarn-debug.log* +yarn-error.log* +/.pnp +.pnp.js + +.vscode/* \ No newline at end of file diff --git a/.static b/.static new file mode 100644 index 0000000..e69de29 diff --git a/main-page.html b/index.html similarity index 100% rename from main-page.html rename to index.html