Skip to content

Commit d9822d7

Browse files
authored
Update instructions for cross OS compatibility
1 parent 28b9c5a commit d9822d7

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/testing.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ Containers built by a PR and stored on GitHub Container Registry can be tested l
4545
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).
4646
- Create a [classic token](https://github.com/settings/tokens). Select the scope for `read:packages`
4747
- 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
48+
- Run the following command in a terminal:
49+
```shell
50+
docker login ghcr.io
51+
```
52+
you will be prompted for a username (your particular.net email) and a password (the token)
53+
- ensure that you get a successful login message.
54+
- Use `docker logout ghcr.io` once the following steps are complete and consider removing the token from github if its no longer needed
5355
2. In the terminal, navigate to `[/docs/test-ghcr-tag`](/docs/test/ghcr-tag).
5456
3. Edit the [`.env` file](/docs/test-ghcr-tag/.env) to specify the PR-based tag (in the form `pr-####`) to test.
5557
4. Run `docker compose up -d`.

0 commit comments

Comments
 (0)