Files
Ben 8ab5a658a2
All checks were successful
Build and Push Docker Image / build (push) Successful in 27s
Fix CI workflow to use Gitea registry and secrets pattern
2025-12-30 04:41:38 +00:00

31 lines
662 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
- master
jobs:
build:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: gitea.ext.ben.io
username: ${{ gitea.actor }}
password: ${{ secrets.CR_PAT }}
- name: Build and Push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: gitea.ext.ben.io/${{ gitea.repository }}:latest