Bladeren bron

feat 0.2.2

Yeuoly 1 jaar geleden
bovenliggende
commit
6824f5586e
2 gewijzigde bestanden met toevoegingen van 16 en 13 verwijderingen
  1. 7 5
      .github/workflows/build-universal.yml
  2. 9 8
      .github/workflows/build.yml

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

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

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

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