Files
rocm-faster-whisper/.gitea/workflows/build.yml
scott 473cf730d4
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 23m37s
Trigger CI on rocm7-dev branch, tag image by branch name
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-03 17:34:00 -04:00

36 lines
1007 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
- rocm7-dev
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to registry
uses: docker/login-action@v3
with:
registry: git.sdgarren.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
git.sdgarren.com/scott/rocm-faster-whisper:${{ gitea.ref_name }}
git.sdgarren.com/scott/rocm-faster-whisper:${{ gitea.sha }}
cache-from: type=registry,ref=git.sdgarren.com/scott/rocm-faster-whisper:buildcache
cache-to: type=registry,ref=git.sdgarren.com/scott/rocm-faster-whisper:buildcache,mode=max