You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/testing.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,13 @@ Container images generated for all builds are pushed to the [GitHub container re
43
43
Containers built by a PR and stored on GitHub Container Registry can be tested locally:
44
44
45
45
1.[Authenticate to the GitHub Container Registry using a personal access token](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-with-a-personal-access-token-classic).
46
+
- Create a [classic token](https://github.com/settings/tokens). Select the scope for `read:packages`
47
+
- Copy the newly created token text.
48
+
-**On Windows**
49
+
- create an Environment Variable to store the token (e.g. GITHUB_TOKEN)
50
+
- open powershell
51
+
- run the command `echo $env:GITHUB_TOKEN | docker login ghcr.io -u <your particular email> --password-stdin`
52
+
- ensure that you get a successful login message. use `docker logout ghcr.io` once the following steps are complete and consider removing the token from github if its no longer needed
46
53
2. In the terminal, navigate to `[/docs/test-ghcr-tag`](/docs/test/ghcr-tag).
47
54
3. Edit the [`.env` file](/docs/test-ghcr-tag/.env) to specify the PR-based tag (in the form `pr-####`) to test.
0 commit comments