Skip to content

Commit 07f4457

Browse files
CodeLieutenantvponomaryov
authored andcommitted
fix(release): provide secrets to docker.yml workflow_call
Signed-off-by: Dusan Malusev <[email protected]>
1 parent e4ac93f commit 07f4457

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/docker.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
default: "dev"
88
required: false
99
type: string
10+
secrets:
11+
DOCKERHUB_TOKEN:
12+
required: true
13+
DOCKERHUB_USERNAME:
14+
required: true
15+
1016
workflow_dispatch:
1117
inputs:
1218
version:
@@ -42,7 +48,7 @@ jobs:
4248
context: .
4349
push: true
4450
pull: true
45-
platforms: 'linux/amd64,linux/arm64/v8'
51+
platforms: "linux/amd64,linux/arm64/v8"
4652
target: production
4753
cache-from: type=gha
4854
cache-to: type=gha,mode=max

.github/workflows/release.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
needs: [get_tag]
2525
with:
2626
version: ${{ needs.get_tag.outputs.tag }}
27+
secrets:
28+
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
29+
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
2730

2831
release:
2932
needs: [get_tag, docker_build]

0 commit comments

Comments
 (0)