Fix image tagging: dev branch tags as dev, not latest
All checks were successful
Build ROCm Image / build (push) Successful in 25s
All checks were successful
Build ROCm Image / build (push) Successful in 25s
main branch → :latest + :sha other branches → :<branch-name> + :sha Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -23,14 +23,21 @@ jobs:
|
|||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
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
|
- name: Build and Push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: Dockerfile.rocm
|
file: Dockerfile.rocm
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: ${{ steps.tags.outputs.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-from: type=registry,ref=git.sdgarren.com/scott/rocm-chatterbox-whisper:latest
|
||||||
cache-to: type=inline
|
cache-to: type=inline
|
||||||
|
|||||||
Reference in New Issue
Block a user