diff --git a/.github/assets/icon-dark.webp b/.github/assets/icon-dark.webp deleted file mode 100644 index 0e0c5830..00000000 Binary files a/.github/assets/icon-dark.webp and /dev/null differ diff --git a/.github/assets/screenshot.webp b/.github/assets/screenshot.webp deleted file mode 100644 index b42bcc51..00000000 Binary files a/.github/assets/screenshot.webp and /dev/null differ diff --git a/.github/workflows/build-windows.yml b/.github/build-windows.yml similarity index 100% rename from .github/workflows/build-windows.yml rename to .github/build-windows.yml diff --git a/.github/docker-registry.yml b/.github/docker-registry.yml new file mode 100644 index 00000000..99489de1 --- /dev/null +++ b/.github/docker-registry.yml @@ -0,0 +1,51 @@ +name: Build and Push Docker Image + +on: + push: + tags: + - 'v*' + +jobs: + docker: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: Log in to GitHub Container Registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Extract metadata for Docker image + id: meta + uses: docker/metadata-action@v5 + with: + images: | + ghcr.io/${{ github.repository_owner }}/voicebox + tags: | + type=semver,pattern={{version}} + type=raw,value=latest,enable=${{ github.ref == format('"refs/heads/{0}"', github.default_branch) }} + + - name: Build and push with metadata + uses: docker/build-push-action@v5 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + cache-from: type=gha + cache-to: type=gha,mode=max diff --git a/.github/workflows/release.yml b/.github/release.yml similarity index 100% rename from .github/workflows/release.yml rename to .github/release.yml