Skip to content

Commit f3f5cf0

Browse files
authored
ci(publish): fix passing secrets to reusable workflow (#3)
secrets, other than GITHUB_TOKEN, were not available
1 parent 54ba3c5 commit f3f5cf0

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

.github/workflows/publish-2.7.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish
1+
name: publish-2.7
22

33
on:
44
push:
@@ -31,4 +31,6 @@ jobs:
3131
with:
3232
version: ${{ matrix.image.version }}
3333
variant: ${{ matrix.image.variant }}
34-
tags: ${{ matrix.image.tags }}
34+
tags: ${{ matrix.image.tags }}
35+
secrets:
36+
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/publish-3.12.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish
1+
name: publish-3.12
22

33
on:
44
push:
@@ -60,4 +60,6 @@ jobs:
6060
with:
6161
version: ${{ matrix.image.version }}
6262
variant: ${{ matrix.image.variant }}
63-
tags: ${{ matrix.image.tags }}
63+
tags: ${{ matrix.image.tags }}
64+
secrets:
65+
password: ${{ secrets.DOCKERHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
List of tags as key-value pair attributes.
1717
required: false
1818
type: string
19+
secrets:
20+
password:
21+
required: true
1922

2023
jobs:
2124
publish:
@@ -29,4 +32,4 @@ jobs:
2932
build-cache-key: ${{ inputs.version }}-${{ inputs.variant }}
3033
build-digest-key: ${{ inputs.version }}-${{ inputs.variant }}
3134
secrets:
32-
registry-password: ${{ secrets.DOCKERHUB_TOKEN }}
35+
registry-password: ${{ secrets.password }}

0 commit comments

Comments
 (0)