Files
rocm-chatterbox-whisper/.gitea/workflows/build.yml

34 lines
915 B
YAML

name: Build ROCm Image
on:
workflow_dispatch:
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: Build and Push
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.rocm
push: true
tags: |
git.sdgarren.com/scott/rocm-chatterbox-whisper:latest
git.sdgarren.com/scott/rocm-chatterbox-whisper:${{ gitea.sha }}
cache-from: type=registry,ref=git.sdgarren.com/scott/rocm-chatterbox-whisper:latest
cache-to: type=inline