

ci: fix docker tags
@af41874fc39f7e849ebfccfd34df370275114fef
--- .github/workflows/docker-build-and-push.yaml
+++ .github/workflows/docker-build-and-push.yaml
... | ... | @@ -3,8 +3,6 @@ |
3 | 3 |
on: |
4 | 4 |
workflow_dispatch: |
5 | 5 |
push: |
6 |
- branches: |
|
7 |
- - "master" |
|
8 | 6 |
tags: |
9 | 7 |
- 'v*' |
10 | 8 |
release: |
... | ... | @@ -18,9 +16,9 @@ |
18 | 16 |
dockerfile: [Dockerfile.cuda, Dockerfile.cpu] |
19 | 17 |
include: |
20 | 18 |
- dockerfile: Dockerfile.cuda |
21 |
- tag-prefix: cuda |
|
22 |
- - repository-name: Dockerfile.cpu |
|
23 |
- tag-prefix: cpu |
|
19 |
+ tag-prefix: cuda- |
|
20 |
+ - dockerfile: Dockerfile.cpu |
|
21 |
+ tag-prefix: cpu- |
|
24 | 22 |
steps: |
25 | 23 |
- uses: actions/checkout@v4 |
26 | 24 |
- name: Login to Docker Hub |
... | ... | @@ -35,10 +33,8 @@ |
35 | 33 |
fedirz/faster-whisper-server |
36 | 34 |
# https://github.com/docker/metadata-action?tab=readme-ov-file#flavor-input |
37 | 35 |
flavor: | |
38 |
- latest=false |
|
39 | 36 |
prefix=${{ matrix.tag-prefix }} |
40 | 37 |
tags: | |
41 |
- type=sha |
|
42 | 38 |
type=semver,pattern={{version}} |
43 | 39 |
type=semver,pattern={{major}}.{{minor}} |
44 | 40 |
- name: Set up Docker Buildx |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?