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