Updated to get gitea action runner

This commit is contained in:
2026-06-27 12:19:54 -05:00
parent 06ac8d6eca
commit e625dc30ad
5 changed files with 107 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
name: Deploy Company Site
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Deploy to live site
run: bash scripts/deploy.sh "${{ gitea.workspace }}"
+1
View File
@@ -168,3 +168,4 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder. # option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/ #.idea/
.runner
@@ -36,6 +36,59 @@
</div> </div>
</div> </div>
{% if user.is_authenticated %}
<!-- Trusted By Section -->
<section class="trusted-by-section" aria-labelledby="trusted-by-heading">
<div class="container">
<p id="trusted-by-heading" class="trusted-by-label">Trusted By</p>
</div>
<div class="trusted-by-marquee" aria-label="Companies that trust us">
<div class="trusted-by-marquee-row">
<div class="trusted-by-track">
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" target="_blank" rel="noopener noreferrer">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="GIS Communications" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" target="_blank" rel="noopener noreferrer" aria-hidden="true">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" target="_blank" rel="noopener noreferrer" aria-hidden="true">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" target="_blank" rel="noopener noreferrer" aria-hidden="true">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" target="_blank" rel="noopener noreferrer" aria-hidden="true">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" target="_blank" rel="noopener noreferrer" aria-hidden="true">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
</div>
<div class="trusted-by-track" aria-hidden="true">
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" tabindex="-1">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" tabindex="-1">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" tabindex="-1">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" tabindex="-1">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" tabindex="-1">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
<a href="https://www.gisbenefits.net/gis-communications/" class="trusted-by-logo" tabindex="-1">
<img src="{% static 'public/img/clients/gis-communications.svg' %}" alt="" width="320" height="48" loading="lazy" decoding="async">
</a>
</div>
</div>
</div>
</section>
{% endif %}
<!-- How We Work --> <!-- How We Work -->
<!-- <div id="how-we-work" class="section" style="background: var(--surface-color);"> --> <!-- <div id="how-we-work" class="section" style="background: var(--surface-color);"> -->
<div id="how-we-work" class="section" > <div id="how-we-work" class="section" >
+2
View File
@@ -5,6 +5,8 @@ Django==5.0
django-enum==2.1.0 django-enum==2.1.0
django-phonenumber-field==8.0.0 django-phonenumber-field==8.0.0
django-recaptcha==4.0.0 django-recaptcha==4.0.0
gunicorn==23.0.0
psycopg2-binary==2.9.10
filelock==3.17.0 filelock==3.17.0
identify==2.6.9 identify==2.6.9
nodeenv==1.9.1 nodeenv==1.9.1
+36
View File
@@ -0,0 +1,36 @@
#!/usr/bin/env bash
set -euo pipefail
REPO_ROOT="/home/westfarn/Documents/django_live_sites/Company_Site"
APP_DIR="$REPO_ROOT/company_site"
VENV="$REPO_ROOT/venv"
SETTINGS="$APP_DIR/company_site/settings.py"
LOCAL_SETTINGS="$APP_DIR/company_site/local_settings.py"
if [[ $# -lt 1 || -z "${1:-}" ]]; then
echo "Usage: $0 <checkout-directory>" >&2
exit 1
fi
CHECKOUT="$1"
cp "$SETTINGS" /tmp/company_site_settings.py.bak
cp "$LOCAL_SETTINGS" /tmp/company_site_local_settings.py.bak 2>/dev/null || true
rsync -a --delete \
--exclude venv/ \
--exclude .git/ \
--exclude 'company_site/company_site/settings.py' \
--exclude 'company_site/company_site/local_settings.py' \
"$CHECKOUT/" "$REPO_ROOT/"
cp /tmp/company_site_settings.py.bak "$SETTINGS"
cp /tmp/company_site_local_settings.py.bak "$LOCAL_SETTINGS" 2>/dev/null || true
source "$VENV/bin/activate"
pip install -r "$REPO_ROOT/requirements.txt"
cd "$APP_DIR"
python manage.py migrate --noinput
python manage.py collectstatic --noinput
sudo systemctl restart company