Compare commits

6 Commits

Author SHA1 Message Date
a8b63cc791 Merge pull request 'Release to production, switching from caprover to a more generic webserver.' (#2) from main into release
All checks were successful
Deploy to production webserver / Deploy-To-Production (push) Successful in 16s
Reviewed-on: #2
2025-08-16 20:56:57 +00:00
0ac9716ac3 Updating CD job definition for deploying to production
All checks were successful
Deploy to staging webserver / Deploy-To-Staging (push) Successful in 1m55s
2025-08-16 14:46:47 -06:00
560fc865b1 Adding CI deployment job definitions for staging and production servers 2025-08-16 14:45:17 -06:00
32af535a4c Removing caprover definitions and deployment code 2025-08-16 14:33:25 -06:00
4eccf3b5a0 Merge pull request 'Refactoring and updating code for deployment to a caprover server' (#1) from caprover into master
Reviewed-on: #1
2025-01-08 23:39:28 +00:00
Jason Williams
f846f77725 Merge branch 'master' into 'release'
Redesign complete. Merging from master into release.

See merge request jaywll/Jnf.me!1
2022-11-21 20:47:18 +00:00
6 changed files with 44 additions and 25 deletions

View File

@@ -0,0 +1,22 @@
name: Deploy to production webserver
run-name: ${{ gitea.actor }} is deploying to production environment
on:
push:
branches: [ release ]
workflow_dispatch:
jobs:
Deploy-To-Production:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Deploy via SFTP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.PRODUCTION_SFTP_HOST }}
username: ${{ secrets.PRODUCTION_SFTP_USERNAME }}
key: ${{ secrets.PRODUCTION_SFTP_PRIVATE_KEY }}
source: "www/"
target: "~/web/jnf.me/public_html/"
strip_components: 1

View File

@@ -0,0 +1,22 @@
name: Deploy to staging webserver
run-name: ${{ gitea.actor }} is deploying to staging environment
on:
push:
branches: [ staging ]
workflow_dispatch:
jobs:
Deploy-To-Staging:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Deploy via SFTP
uses: appleboy/scp-action@master
with:
host: ${{ secrets.STAGING_SFTP_HOST }}
username: ${{ secrets.STAGING_SFTP_USERNAME }}
key: ${{ secrets.STAGING_SFTP_PRIVATE_KEY }}
source: "www/"
target: "~/web/jnf.dev.jnf.me/public_html/"
strip_components: 1

View File

@@ -1,3 +0,0 @@
FROM docker.io/nginx:1-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY ./www /www

View File

@@ -1,4 +0,0 @@
{
"schemaVersion": 2,
"dockerfilePath": "./Dockerfile"
}

View File

@@ -1,4 +0,0 @@
# Script used to spin up a local webserver for development & testing
#!/bin/bash
podman run -it --rm -p 3000:80 $(podman build -q .)

View File

@@ -1,14 +0,0 @@
server {
listen 80;
root /www;
location / {
index index.html;
try_files $uri /index.html;
}
location /lucy {
index index.html;
try_files $uri /lucy.html;
}
}