Files
scott 464c3d372c
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 27s
Update CI to trigger on main only and tag image as latest
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 10:02:53 -04:00

35 lines
974 B
YAML

name: Build and Push Docker Image
on:
push:
branches:
- main
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:latest
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