Files
rocm-chatterbox-whisper/.gitea/workflows/build.yml
scott 766ca9d278
All checks were successful
Build ROCm Image / build (push) Successful in 25s
Fix image tagging: dev branch tags as dev, not latest
main branch → :latest + :sha
other branches → :<branch-name> + :sha

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-06 17:29:59 -04:00

44 lines
1.3 KiB
YAML

name: Build ROCm Image
on:
push:
branches:
- main
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Gitea Registry
uses: docker/login-action@v3
with:
registry: git.sdgarren.com
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Set tags
id: tags
run: |
if [ "${{ gitea.ref_name }}" = "main" ]; then
echo "tags=git.sdgarren.com/scott/rocm-chatterbox-whisper:latest,git.sdgarren.com/scott/rocm-chatterbox-whisper:${{ gitea.sha }}" >> $GITHUB_OUTPUT
else
echo "tags=git.sdgarren.com/scott/rocm-chatterbox-whisper:${{ gitea.ref_name }},git.sdgarren.com/scott/rocm-chatterbox-whisper:${{ gitea.sha }}" >> $GITHUB_OUTPUT
fi
- name: Build and Push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.rocm
push: true
tags: ${{ steps.tags.outputs.tags }}
cache-from: type=registry,ref=git.sdgarren.com/scott/rocm-chatterbox-whisper:latest
cache-to: type=inline