Skip to content

Commit 421e5bb

Browse files
committed
ci: try to fix docker credential access in GHA
1 parent 30d632f commit 421e5bb

File tree

2 files changed

+3
-11
lines changed

2 files changed

+3
-11
lines changed

.github/actions/docker-build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ inputs:
33
dockerhub_username:
44
type: string
55
dockerhub_token:
6-
required: true
6+
type: string
77

88
jobs:
99
using: "composite"

.github/workflows/docker-build.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,6 @@ on:
99
tags:
1010
- "v*.*.*"
1111
pull_request:
12-
workflow_call:
13-
inputs:
14-
dockerhub_username:
15-
required: true
16-
type: string
17-
secrets:
18-
dockerhub_token:
19-
required: true
2012

2113
jobs:
2214
docker:
@@ -28,5 +20,5 @@ jobs:
2820

2921
- uses: ./.github/actions/docker-build
3022
with:
31-
dockerhub_username: ${{ inputs.dockerhub_username }}
32-
dockerhub_token: ${{ secrets.dockerhub_token }}
23+
dockerhub_username: ${{ vars.DOCKERHUB_USERNAME }}
24+
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}

0 commit comments

Comments
 (0)