Files
gitea-ai-webhook/.gitea/workflows/docker-build-push.yaml
Ben 165a00e7e4
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 19s
Update workflow to use docker runner and catthehacker image
2026-01-01 04:44:32 +00:00

36 lines
834 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build-and-push:
runs-on: docker
container:
image: catthehacker/ubuntu:act-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Gitea Container Registry
uses: docker/login-action@v2
with:
registry: gitea.ext.ben.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: gitea.ext.ben.io/${{ github.repository }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max