ta-organizerr/.gitea/workflows/docker-build.yml
wander 8a9f8fbb35
All checks were successful
Docker Build / build (push) Successful in 21s
Update .gitea/workflows/docker-build.yml
2026-03-08 04:02:03 -04:00

43 lines
1 KiB
YAML

name: Docker Build
on:
push:
branches: [ "main" , "feature/ui-login-rework"]
paths-ignore:
- 'README.md'
- '.gitignore'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: git.unfilteredrealm.com
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: git.unfilteredrealm.com/${{ github.repository }}
tags: type=raw,value=latest
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}