Skip to content

Commit c4b27e4

Browse files
committed
[#16023] Misc fixes for snapshot images
- Inherit secrets - Remove use of _TEST secrets - Replace '/' in tags with '-'
1 parent a49db37 commit c4b27e4

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/actions/get-origin-info/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ runs:
3535
script: |
3636
const { HEAD_SHA, HEAD_BRANCH, EVENT } = process.env
3737
headBranch = HEAD_BRANCH
38-
imageTag = HEAD_BRANCH
38+
imageTag = HEAD_BRANCH.replace("/", "-")
3939
const owner = context.repo.owner
4040
const repo = context.repo.repo
4141
const pullRequests = await github.paginate(

.github/workflows/on_build_do_publish_image.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
- get-info
6868
if: ${{ needs.get-info.outputs.publish-image == 'true' && !(github.event.workflow_run.head_branch == '15.2.x' || github.event.workflow_run.head_branch == '15.0.x') }}
6969
uses: ./.github/workflows/snapshot_image.yml
70+
secrets: inherit
7071
with:
7172
runId: ${{ github.event.workflow_run.id }}
7273
name: ${{ needs.get-info.outputs.image-name }}
@@ -102,8 +103,8 @@ jobs:
102103
uses: infinispan/infinispan-images/.github/workflows/publish_image.yml@main
103104
secrets:
104105
token: ${{ secrets.GITHUB_TOKEN }}
105-
quayUser: ${{ secrets.QUAY_USERNAME_TEST }}
106-
quayPass: ${{ secrets.QUAY_TOKEN_TEST }}
106+
quayUser: ${{ secrets.QUAY_USERNAME }}
107+
quayPass: ${{ secrets.QUAY_TOKEN }}
107108
with:
108109
repository: ${{ github.repository }}
109110
runId: ${{ github.event.workflow_run.id }}

0 commit comments

Comments
 (0)