Update GITEA.md

This commit is contained in:
2026-02-08 19:54:40 -06:00
parent a2a06d28c7
commit 8d83c55758

View File

@@ -2,11 +2,10 @@
Gitea runner's function exactly the same as GitHub runners. They're just stored in the .gitea folder instead of .github folder. Gitea runner's function exactly the same as GitHub runners. They're just stored in the .gitea folder instead of .github folder.
## Ramblingcoder Gitea ## Docker
Gitea supports storing docker images.
There is a private Gitea repository that docker images are pushed too. This is an example of a gitea action that creates and pushes an image. This is an example of a gitea action that creates and pushes an image.
The image `gitea-runner-custom-image` has docker and docker-compose pre-installed.
```yaml ```yaml
name: Build and Push Docker Image name: Build and Push Docker Image
@@ -21,18 +20,16 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: git.ramblingcoder.com/ramblingcoder/gitea-runner-custom-image:latest
credentials:
username: ${{ secrets.GIT_USERNAME }}
password: ${{ secrets.GIT_PASSWORD }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry - name: Login to Docker Registry
uses: https://git.ramblingcoder.com/Mirror.Actions/docker-login-action@v3 uses: docker/login-action@v3
with: with:
registry: git.ramblingcoder.com registry: git.ramblingcoder.com
username: ${{ secrets.GIT_USERNAME }} username: ${{ secrets.GIT_USERNAME }}
@@ -40,8 +37,8 @@ jobs:
- name: Build Image - name: Build Image
run: | run: |
docker build -t git.ramblingcoder.com/ramblingcoder/REPLACETHIS -f docker/Dockerfile . docker build -t git.ramblingcoder.com/USER_HERE/IMAGE_HERE -f docker/Dockerfile .
- name: Push Image - name: Push Image
run: docker push git.ramblingcoder.com/ramblingcoder/REPLACETHIS run: docker push git.ramblingcoder.com/USER_HERE/IMAGE_HERE
``` ```