浏览代码

feat 0.2.2

Yeuoly 1 年之前
父节点
当前提交
ab24f0dc47
共有 2 个文件被更改,包括 12 次插入15 次删除
  1. 4 6
      .github/workflows/build-universal.yml
  2. 8 9
      .github/workflows/build.yml

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

@@ -21,9 +21,8 @@ jobs:
       runner: ubuntu-latest
       arch: amd64
       arch_label: AMD64
-      secrets: 
-        DOCKERHUB_USER: ${{ env.DOCKERHUB_USER }}
-        DOCKERHUB_TOKEN: ${{ env.DOCKERHUB_TOKEN }}
+      DOCKERHUB_USER: ${{ env.DOCKERHUB_USER }}
+      DOCKERHUB_TOKEN: ${{ env.DOCKERHUB_TOKEN }}
 
   build-arm64:
     uses: ./.github/workflows/build.yml
@@ -31,6 +30,5 @@ jobs:
       runner: arm64_runner
       arch: arm64
       arch_label: ARM64
-      secrets: 
-        DOCKERHUB_USER: ${{ env.DOCKERHUB_USER }}
-        DOCKERHUB_TOKEN: ${{ env.DOCKERHUB_TOKEN }}
+      DOCKERHUB_USER: ${{ env.DOCKERHUB_USER }}
+      DOCKERHUB_TOKEN: ${{ env.DOCKERHUB_TOKEN }}

+ 8 - 9
.github/workflows/build.yml

@@ -12,13 +12,12 @@ on:
       arch_label:
         required: true
         type: string
-      secrets:
-        DOCKERHUB_USER:
-          required: true
-          type: string
-        DOCKERHUB_TOKEN:
-          required: true
-          type: string
+      DOCKERHUB_USER:
+        required: true
+        type: string
+      DOCKERHUB_TOKEN:
+        required: true
+        type: string
 
 jobs:
   build:
@@ -32,8 +31,8 @@ jobs:
       - name: Login to Docker Hub
         uses: docker/login-action@v2
         with:
-          username: ${{ inputs.secrets.DOCKERHUB_USER }}
-          password: ${{ inputs.secrets.DOCKERHUB_TOKEN }}
+          username: ${{ inputs.DOCKERHUB_USER }}
+          password: ${{ inputs.DOCKERHUB_TOKEN }}
 
       - name: Extract metadata (tags, labels) for Docker
         id: meta