Skip to content

Commit 66593ba

Browse files
committed
chore: enable docker credentials for integration test
1 parent 97e0792 commit 66593ba

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/wc-integration-test.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ on:
1919
required: false
2020
type: string
2121
default: "ghcr.io"
22+
secrets:
23+
DOCKER_REGISTRY_USERNAME:
24+
required: false
25+
DOCKER_REGISTRY_PASSWORD:
26+
required: false
2227

2328
permissions: {}
2429

@@ -59,7 +64,11 @@ jobs:
5964
- determine-container
6065
- sanitize-image-name
6166
runs-on: ${{ inputs.runner-labels }}
62-
container: ${{ needs.determine-container.outputs.container }}
67+
container:
68+
image: ${{ needs.determine-container.outputs.container }}
69+
credentials:
70+
username: ${{ secrets.DOCKER_REGISTRY_USERNAME || github.actor }}
71+
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD || github.token }}
6372
permissions:
6473
contents: read
6574
steps:

0 commit comments

Comments
 (0)