Files
code-rules/GITEA.md
2026-02-10 23:03:38 -06:00

54 lines
1.3 KiB
Markdown

# Gitea
Gitea is a selfhosted GIT server.
Gitea runner's function exactly the same as GitHub runners. They're just stored in the .gitea folder instead of .github folder.
## GitHub's gh cli
Whenever you need to use the gh cli, use an equivalent tool from the 'rc-gitea' mcp tool instead.
**Example**
`gh issue list --repo owner/repo` should instead use `list_repo_issues` from rc-gitea mcp
## Docker Action Example
Gitea supports storing docker images.
This is an example of a gitea action that creates and pushes an image.
```yaml
name: Build and Push Docker Image
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
registry: git.ramblingcoder.com
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_PASSWORD }}
- name: Build Image
run: |
docker build -t git.ramblingcoder.com/USER_HERE/IMAGE_HERE -f docker/Dockerfile .
- name: Push Image
run: docker push git.ramblingcoder.com/USER_HERE/IMAGE_HERE
```