From 4a267a2d29d6972199b27cb032b710e37d0326aa Mon Sep 17 00:00:00 2001 From: Xinwei Xiong <3293172751NSS@gmail.com> Date: Fri, 1 Nov 2024 16:01:07 +0800 Subject: [PATCH] fix: actions --- .github/workflows/docker-build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 8dd0b0a..4c44420 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -85,10 +85,13 @@ jobs: file: ./build/images/voiceflow/Dockerfile platforms: linux/amd64,linux/arm64 push: ${{ github.event_name != 'pull_request' }} - tags: ${{ steps.meta1.outputs.tags }} - labels: ${{ steps.meta1.outputs.labels }} + tags: ${{ steps.metadata.outputs.tags }} + labels: ${{ steps.metadata.outputs.labels }} cache-from: type=local,src=/tmp/.buildx-cache cache-to: type=local,dest=/tmp/.buildx-cache + build-args: | + VERSION=${{ steps.metadata.outputs.version }} + provenance: true # 8. 可选:安全扫描(例如 Trivy) - name: Scan Docker image for vulnerabilities