Files
unduck/.gitea/workflows/docker-build.yml
Joshua Higgins Verified 7a41e74e66
All checks were successful
Docker Image CI / build-and-push (push) Successful in 4m6s
feat: custom
2026-05-02 17:19:55 -04:00

40 lines
950 B
YAML

name: Docker Image CI
on:
workflow_dispatch:
push:
branches:
- custom
jobs:
build-and-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to Gitea Container Registry
uses: docker/login-action@v3
with:
registry: git.abunchofknowitalls.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: git.abunchofknowitalls.com/${{ gitea.repository }}
- 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 }}