Skip to content

Commit bb40c7a

Browse files
committed
docs: Add a link paragraph introducing each example .netrc stanza
1 parent 30370f5 commit bb40c7a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Sources/swift-container-plugin/Documentation.docc/authentication.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ The following examples show how to set up the plugin for some popular registry p
3232

3333
3. Copy the token and add it, together with your Docker ID, to your `.netrc` file under the machine name `auth.docker.io`:
3434

35+
The final `.netrc` entry should be similar to this:
36+
3537
```
3638
machine auth.docker.io
3739
login mydockerid
@@ -49,6 +51,8 @@ machine auth.docker.io
4951

5052
3. Copy the token and add it, together with your GitHub username, to your `.netrc` file:
5153

54+
The final `.netrc` entry should be similar to this:
55+
5256
```
5357
machine ghcr.io
5458
login mygithubusername
@@ -86,6 +90,8 @@ Registries in different AWS regions are separate and require different authentic
8690
* **The login name must be `AWS`**.
8791
* The token is a large encoded string which is not shown in full in the example.
8892
93+
The final `.netrc` entry should be similar to this:
94+
8995
```
9096
machine 123456789012.dkr.ecr.us-west-2.amazonaws.com
9197
login AWS

0 commit comments

Comments
 (0)