Files
chesco/.gitea/workflows/deploy.yaml
T
CalebLewallen c3e143a878
Build and Deploy / deploy (push) Failing after 30s
Add GITEA_SERVER_URL override to fix checkout networking
2026-05-14 10:34:32 -04:00

33 lines
759 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
env:
# Attempting to override the internal Gitea URL
GITEA_SERVER_URL: http://git.homelab.lewallen.io:3000
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Build Docker Image
run: |
docker build -t chesco-site:latest -f docker/Dockerfile .
- name: Deploy Container
run: |
docker stop chesco-site || true
docker rm chesco-site || true
docker run -d \
--name chesco-site \
--restart always \
-p 8081:80 \
chesco-site:latest