Skip to content

Commit d7ee8bd

Browse files
committed
Changed user name from secret to input
Signed-off-by: Rostislav Lán <rlan@redhat.com>
1 parent ecacff9 commit d7ee8bd

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/create-release-branch.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,9 @@ jobs:
134134
publish-container: true
135135
image-repository-prefix: ${{ format('ghcr.io/{0}', github.repository) }}
136136
overlay-branch: ${{ inputs.release-branch }}
137+
image-registry-user: ${{ github.actor }}
137138

138139
secrets:
139-
image-registry-user: ${{ github.actor }}
140140
image-registry-password: ${{ secrets.GITHUB_TOKEN }}
141141

142142
permissions:

.github/workflows/export-workspaces-as-dynamic.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: Export Workspace as Dynamic Plugins Packages
22
on:
33
workflow_call:
44
secrets:
5-
image-registry-user:
6-
description: User name to be used to push to container image registry
7-
required: false
8-
95
image-registry-password:
106
description: Password to be used to push to container image registry
117
required: false
128

139
inputs:
10+
image-registry-user:
11+
description: User name to be used to push to container image registry
12+
type: string
13+
required: false
14+
1415
node-version:
1516
description: node-version to execute the export
1617
type: string
@@ -127,9 +128,9 @@ jobs:
127128
workspace-path: ${{ inputs.workspace-path }}
128129
publish-container: ${{ inputs.publish-container }}
129130
image-repository-prefix: ${{ inputs.image-repository-prefix }}
131+
image-registry-user: ${{ secrets.image-registry-user || github.actor }}
130132

131133
secrets:
132-
image-registry-user: ${{ secrets.image-registry-user || github.actor }}
133134
image-registry-password: ${{ secrets.image-registry-password || secrets.GITHUB_TOKEN }}
134135

135136
permissions:

.github/workflows/pr-actions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,9 @@ jobs:
172172
publish-container: true
173173
image-repository-prefix: ${{ format('ghcr.io/{0}', github.repository) }}
174174
image-tag-prefix: ${{ format('pr_{0}__', needs.prepare.outputs.pr-number) }}
175+
image-registry-user: ${{ github.actor }}
175176

176177
secrets:
177-
image-registry-user: ${{ github.actor }}
178178
image-registry-password: ${{ secrets.GITHUB_TOKEN }}
179179

180180
permissions:

.github/workflows/publish-release-branch-workspace-plugins.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ jobs:
6969
image-repository-prefix: ${{ format('ghcr.io/{0}', github.repository) }}
7070
last-publish-commit: ${{ needs.prepare.outputs.last-published-commit }}
7171
image-tag-prefix: ${{ github.ref_name == 'main' && 'next__' || '' }}
72+
image-registry-user: ${{ github.actor }}
7273

7374
secrets:
74-
image-registry-user: ${{ github.actor }}
7575
image-registry-password: ${{ secrets.GITHUB_TOKEN }}
7676

7777
permissions:

0 commit comments

Comments
 (0)