Skip to content

Commit

Permalink
ci: fix docker tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedir Zadniprovskyi committed May 27, 2024
1 parent 6e8a2c4 commit af41874
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions .github/workflows/docker-build-and-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ name: docker-build-and-push
on:
workflow_dispatch:
push:
branches:
- "master"
tags:
- 'v*'
release:
Expand All @@ -18,9 +16,9 @@ jobs:
dockerfile: [Dockerfile.cuda, Dockerfile.cpu]
include:
- dockerfile: Dockerfile.cuda
tag-prefix: cuda
- repository-name: Dockerfile.cpu
tag-prefix: cpu
tag-prefix: cuda-
- dockerfile: Dockerfile.cpu
tag-prefix: cpu-
steps:
- uses: actions/checkout@v4
- name: Login to Docker Hub
Expand All @@ -35,10 +33,8 @@ jobs:
fedirz/faster-whisper-server
# https://github.com/docker/metadata-action?tab=readme-ov-file#flavor-input
flavor: |
latest=false
prefix=${{ matrix.tag-prefix }}
tags: |
type=sha
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
- name: Set up Docker Buildx
Expand Down

0 comments on commit af41874

Please sign in to comment.