Files
chesco/.gitea/workflows/deploy.yaml
T
CalebLewallen fa672acaf9
Build and Deploy / deploy (push) Failing after 25s
Add GITHUB_TOKEN to checkout for Gitea authentication
2026-05-14 10:32:51 -04:00

33 lines
825 B
YAML

name: Build and Deploy
on:
push:
branches:
- main
jobs:
deploy:
# 'ubuntu-latest' is a GitHub label. Many Gitea runners use 'act'
# or specific OS labels.
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
# Explicitly provide the token to ensure the runner can pull the private repo
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