diff --git a/.gitea/gitea_compose_qnap_all_in_one.md b/.gitea/gitea_compose_qnap_all_in_one.md index 3619059..9463456 100644 --- a/.gitea/gitea_compose_qnap_all_in_one.md +++ b/.gitea/gitea_compose_qnap_all_in_one.md @@ -99,7 +99,7 @@ services: level: info runner: file: /data/.runner - capacity: 2 + capacity: 4 timeout: 3h insecure: false fetch_timeout: 5s diff --git a/.github/workflows/release-image.yml b/.github/workflows/release-image.yml index 7e8cc4f..a026e42 100644 --- a/.github/workflows/release-image.yml +++ b/.github/workflows/release-image.yml @@ -45,21 +45,27 @@ jobs: # Guardrail anchor: target: runner - name: Build and push app image - run: | - docker buildx build --push \ - --tag "${{ steps.vars.outputs.app_image }}" \ - --file ./Dockerfile.prod \ - --target runner \ - . + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.prod + target: runner + push: true + tags: ${{ steps.vars.outputs.app_image }} + cache-from: type=gha,scope=app + cache-to: type=gha,mode=max,scope=app # Guardrail anchor: target: migrator - name: Build and push migrator image - run: | - docker buildx build --push \ - --tag "${{ steps.vars.outputs.migrator_image }}" \ - --file ./Dockerfile.prod \ - --target migrator \ - . + uses: docker/build-push-action@v5 + with: + context: . + file: ./Dockerfile.prod + target: migrator + push: true + tags: ${{ steps.vars.outputs.migrator_image }} + cache-from: type=gha,scope=migrator + cache-to: type=gha,mode=max,scope=migrator - name: Release summary run: |