

feat: switch to ghcr.io
@057c9a80e3e072dc293eacd3b5f292e0ec684a9e
--- .github/workflows/docker-build-and-push.yaml
+++ .github/workflows/docker-build-and-push.yaml
... | ... | @@ -7,7 +7,8 @@ |
7 | 7 |
release: |
8 | 8 |
types: [published] |
9 | 9 |
env: |
10 |
- IMAGE_NAME: fedirz/faster-whisper-server |
|
10 |
+ REGISTRY: ghcr.io |
|
11 |
+ FULL_IMAGE_NAME: ghcr.io/fedirz/faster-whisper-server |
|
11 | 12 |
jobs: |
12 | 13 |
docker: |
13 | 14 |
runs-on: ubuntu-latest |
... | ... | @@ -26,7 +27,7 @@ |
26 | 27 |
uses: docker/metadata-action@v5 |
27 | 28 |
with: |
28 | 29 |
images: | |
29 |
- ${{ env.IMAGE_NAME }} |
|
30 |
+ ${{ env.FULL_IMAGE_NAME }} |
|
30 | 31 |
# https://github.com/docker/metadata-action?tab=readme-ov-file#flavor-input |
31 | 32 |
flavor: | |
32 | 33 |
suffix=${{ matrix.tag-suffix}},onlatest=true |
... | ... | @@ -38,8 +39,9 @@ |
38 | 39 |
- name: Login to Docker Hub |
39 | 40 |
uses: docker/login-action@v3 |
40 | 41 |
with: |
41 |
- username: ${{ secrets.DOCKERHUB_USERNAME }} |
|
42 |
- password: ${{ secrets.DOCKERHUB_TOKEN }} |
|
42 |
+ registry: ${{ env.REGISTRY }} |
|
43 |
+ username: ${{ github.actor }} |
|
44 |
+ password: ${{ secrets.GITHUB_TOKEN }} |
|
43 | 45 |
- name: Set up Docker Buildx |
44 | 46 |
uses: docker/setup-buildx-action@v3 |
45 | 47 |
- name: Build and push |
... | ... | @@ -52,5 +54,5 @@ |
52 | 54 |
push: true |
53 | 55 |
platforms: linux/amd64,linux/arm64 |
54 | 56 |
tags: ${{ steps.meta.outputs.tags }} |
55 |
- cache-from: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache |
|
56 |
- cache-to: type=registry,ref=${{ env.IMAGE_NAME }}:buildcache,mode=max |
|
57 |
+ cache-from: type=registry,ref=${{ env.FULL_IMAGE_NAME }}:buildcache |
|
58 |
+ cache-to: type=registry,ref=${{ env.FULL_IMAGE_NAME }}:buildcache,mode=max |
--- Dockerfile
+++ Dockerfile
... | ... | @@ -2,6 +2,7 @@ |
2 | 2 |
# hadolint ignore=DL3006 |
3 | 3 |
FROM ${BASE_IMAGE} |
4 | 4 |
LABEL org.opencontainers.image.source="https://github.com/fedirz/faster-whisper-server" |
5 |
+LABEL org.opencontainers.image.licenses="MIT" |
|
5 | 6 |
# `ffmpeg` is installed because without it `gradio` won't work with mp3(possible others as well) files |
6 | 7 |
# hadolint ignore=DL3008 |
7 | 8 |
RUN apt-get update && \ |
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?