Skip to content

Commit 1261ee7

Browse files
committed
pass secrets as input
1 parent c9af030 commit 1261ee7

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.github/workflows/_prepare-docker.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
arch:
55
required: true
66
type: string
7+
dockerhub_token:
8+
required: true
9+
type: string
710

811
jobs:
912
prepare-builder-docker:
@@ -17,7 +20,7 @@ jobs:
1720
uses: docker/login-action@v3
1821
with:
1922
username: blahgeek
20-
password: ${{ secrets.DOCKERHUB_TOKEN }}
23+
password: ${{ inputs.dockerhub_token }}
2124

2225
- name: Set up Docker Buildx
2326
uses: docker/setup-buildx-action@v3

.github/workflows/daily-master.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: ./.github/workflows/_prepare-docker.yml
1919
with:
2020
arch: ${{ matrix.arch }}
21+
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
2122
strategy:
2223
matrix:
2324
arch:

.github/workflows/daily-mps.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
uses: ./.github/workflows/_prepare-docker.yml
1919
with:
2020
arch: ${{ matrix.arch }}
21+
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }}
2122
strategy:
2223
matrix:
2324
arch:

0 commit comments

Comments
 (0)