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