Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
ErcinDedeoglu committed Nov 8, 2023
1 parent df11a1c commit a73ad68
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 11 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,25 @@ jobs:
- name: 🏷️ Extract Branch Name
run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV

- name: 🏷️ Define Tags
id: set_tags
run: |
# Always set the default tags
TAGS="dublok/stt:${GITHUB_REF_NAME},dublok/stt:${GITHUB_REF_NAME}-${{ env.SHA_SHORT }}"
# Check if GITHUB_REF_NAME starts with 'v' and if so, append '-latest'
if [[ $GITHUB_REF_NAME == v* ]]; then
TAGS="$TAGS,dublok/stt:${GITHUB_REF_NAME}-latest"
fi
# Set the TAGS output for the next step
echo "::set-output name=tags::$TAGS"
- name: 🛠️ Build and Push Docker Images
uses: docker/build-push-action@v5.0.0
with:
context: ./src
file: ./src/Dockerfile
push: true
platforms: linux/amd64,linux/arm64,linux/s390x
tags: |
dublok/stt:${{ github.ref_name }}
dublok/stt:${{ github.ref_name }}-${{ env.SHA_SHORT }}
tags: ${{ steps.set_tags.outputs.tags }}
8 changes: 0 additions & 8 deletions .github/workflows/sync-whisper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,6 @@ jobs:
git add src/whisper
git commit -m "Sync whisper.cpp to $tag 🚀" || echo "No changes to commit 🛑"
git push origin $tag
# If changes were committed and pushed, then create and push tag
if git show-ref --quiet --tags $tag; then
echo "Tag $tag already exists"
else
git tag $tag
git push origin $tag
fi
env:
PAT: ${{ secrets.PAT }}

Expand Down

0 comments on commit a73ad68

Please sign in to comment.