Compare commits
3 Commits
caprover
...
560fc865b1
| Author | SHA1 | Date | |
|---|---|---|---|
| 560fc865b1 | |||
| 32af535a4c | |||
| 4eccf3b5a0 |
22
.gitea/workflows/release.yml
Normal file
22
.gitea/workflows/release.yml
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Deploy to production webserver
|
||||||
|
run-name: ${{ gitea.actor }} is deploying to production 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.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
|
||||||
22
.gitea/workflows/stage.yml
Normal file
22
.gitea/workflows/stage.yml
Normal 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
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
FROM docker.io/nginx:1-alpine
|
|
||||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
||||||
COPY ./www /www
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"schemaVersion": 2,
|
|
||||||
"dockerfilePath": "./Dockerfile"
|
|
||||||
}
|
|
||||||
@@ -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 .)
|
|
||||||
14
nginx.conf
14
nginx.conf
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user