diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 91e8616c..77864e28 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -3,13 +3,10 @@ name: build image and push on: push: branches: - - action + - master tags: - '*' -env: - MODEL_URL: https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/download/pretrained-model/hivision_modnet.onnx - jobs: docker: runs-on: ubuntu-latest @@ -18,8 +15,8 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Download model - run: wget -O hivision_modnet.onnx ${{ vars.MODEL_URL || env.MODEL_URL }} + - name: Download models + run: echo ${{ vars.MODEL_URLS }} | xargs -n 1 -I {} wget -P hivision/creator/weights {} - name: Set up QEMU uses: docker/setup-qemu-action@v3