Skip to content

Commit

Permalink
删除下载镜像
Browse files Browse the repository at this point in the history
  • Loading branch information
buyfakett committed Oct 24, 2024
1 parent 6b63fbb commit 54e72f8
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 43 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# 参考
# Build and push Docker images
# https://github.com/marketplace/actions/build-and-push-docker-images
# Docker Metadata action
# https://github.com/marketplace/actions/docker-metadata-action
# Multi-platform image with GitHub Actions
# https://docs.docker.com/build/ci/github-actions/multi-platform/

name: Docker Publish

on:
push:
branches:
- main

env:
IMAGE_NAME: "buyfakett/piper-http"
IMAGE_TAG: "latest"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.IMAGE_NAME }}

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker Image
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/arm64,linux/amd64
push: true
tags: ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}
42 changes: 0 additions & 42 deletions .github/workflows/main.yml

This file was deleted.

2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
download_script = os.path.join(script_folder, "download/download-piper-voices.py")

# Download the model
subprocess.run(['python', download_script, link, target_folder])
# subprocess.run(['python', download_script, link, target_folder])

# Join target_folder with the model name
model_path = os.path.join(target_folder, "model.onnx")
Expand Down

0 comments on commit 54e72f8

Please sign in to comment.