Yeuoly il y a 1 an
Parent
commit
1a69fe0ff6
2 fichiers modifiés avec 4 ajouts et 9 suppressions
  1. 1 6
      .github/workflows/build-universal.yml
  2. 3 3
      .github/workflows/build.yml

+ 1 - 6
.github/workflows/build-universal.yml

@@ -1,4 +1,4 @@
-name: Build AMD64
+name: Build Universal
 
 on:
   push:
@@ -10,11 +10,6 @@ on:
   release:
     types: [published]
 
-env:
-  DOCKERHUB_USER: ${{ secrets.DOCKERHUB_USER }}
-  DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
-  DIFY_SANDBOX_IMAGE_NAME: ${{ vars.DIFY_SANDBOX_IMAGE_NAME || 'langgenius/dify-sandbox' }}
-
 jobs:
   build-amd64:
     uses: ./.github/workflows/build.yml

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

@@ -25,14 +25,14 @@ jobs:
       - name: Login to Docker Hub
         uses: docker/login-action@v2
         with:
-          username: ${{ env.DOCKERHUB_USER }}
-          password: ${{ env.DOCKERHUB_TOKEN }}
+          username: ${{ secrets.DOCKERHUB_USER }}
+          password: ${{ secrets.DOCKERHUB_TOKEN }}
 
       - name: Extract metadata (tags, labels) for Docker
         id: meta
         uses: docker/metadata-action@v5
         with:
-          images: ${{ env.DIFY_SANDBOX_IMAGE_NAME }}
+          images: ${{ vars.DIFY_SANDBOX_IMAGE_NAME || 'langgenius/dify-sandbox' }}
           tags: |
             type=raw,value=latest,enable=${{ startsWith(github.ref, 'refs/tags/') }}
             type=ref,event=branch