

ci: enable docker push
@56b662da3c2bf8829b336c10f050d5f71669b0d4
--- .github/workflows/docker-build-and-push.yaml
+++ .github/workflows/docker-build-and-push.yaml
... | ... | @@ -1,10 +1,12 @@ |
1 | 1 |
name: docker-build-and-push |
2 | 2 |
|
3 | 3 |
on: |
4 |
+ workflow_dispatch: |
|
4 | 5 |
push: |
5 | 6 |
branches: |
6 | 7 |
- "master" |
7 |
-# TODO: releases |
|
8 |
+ tags: |
|
9 |
+ - 'v*' |
|
8 | 10 |
|
9 | 11 |
jobs: |
10 | 12 |
docker: |
... | ... | @@ -35,6 +37,8 @@ |
35 | 37 |
prefix=${{ matrix.tag-prefix }} |
36 | 38 |
tags: | |
37 | 39 |
type=sha |
40 |
+ type=semver,pattern={{version}} |
|
41 |
+ type=semver,pattern={{major}}.{{minor}} |
|
38 | 42 |
- name: Set up Docker Buildx |
39 | 43 |
uses: docker/setup-buildx-action@v3 |
40 | 44 |
- name: Build and push |
... | ... | @@ -42,10 +46,10 @@ |
42 | 46 |
with: |
43 | 47 |
context: . |
44 | 48 |
file: ${{ matrix.dockerfile }} |
45 |
- # push: true |
|
46 |
- # TODO: multi-platform |
|
49 |
+ push: true |
|
50 |
+ # TODO: |
|
47 | 51 |
# platforms: linux/amd64,linux/arm64 |
48 | 52 |
tags: ${{ steps.meta.outputs.tags }} |
49 |
- # TODO: cache |
|
53 |
+ # TODO: |
|
50 | 54 |
# cache-from: type=registry,ref=fedirz/faster-whisper-server:buildcache |
51 | 55 |
# cache-to: type=registry,ref=fedirz/faster-whisper-server:buildcache,mode=max |
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?