瀏覽代碼

feat 0.2.2

Yeuoly 1 年之前
父節點
當前提交
839ad5dac7
共有 2 個文件被更改,包括 7 次插入4 次删除
  1. 5 2
      .github/workflows/build-universal.yml
  2. 2 2
      .github/workflows/build.yml

+ 5 - 2
.github/workflows/build-universal.yml

@@ -4,6 +4,9 @@ on:
   push:
     branches:
       - main
+  pull_request:
+    branches:
+      - main
   release:
     types: [published]
 
@@ -54,14 +57,14 @@ jobs:
 
       - name: Build Universal Docker Images
         run:
-          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n');
+          for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n');
           do
             docker manifest create $tag $tag-amd64 $tag-arm64;
           done
 
       - name: Push Universal Docker Image
         run: 
-          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n');
+          for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n');
           do
             docker manifest push $tag;
           done

+ 2 - 2
.github/workflows/build.yml

@@ -63,13 +63,13 @@ jobs:
 
       - name: Tag Docker Images
         run: 
-          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n');
+          for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n');
           do
             docker tag dify-sandbox "$tag-${{ inputs.arch }}";
           done
       - name: Push Docker Image
         run:
-          for tag in $(echo ${{ steps.meta.outputs.tags }} | tr ',' '\n');
+          for tag in $(echo "${{ steps.meta.outputs.tags }}" | tr ',' '\n');
           do
             docker push $tag-${{ inputs.arch }};
           done