Skip to content

Commit 6d629af

Browse files
committed
add note about environment variables
1 parent 9170ca4 commit 6d629af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,12 @@ repositories:
7373
* `policies` __array__
7474
* Name of policies
7575

76+
Environment variable can also be used, which are the uppercase equivelent of the yaml config directives, e.g. `ACCESS_TOKEN`
77+
7678
## Docker
7779

7880
We recommend using Docker for executing this utility. Example usage can be found below:
7981

8082
```
81-
docker run -v "${PWD}/config.yml:/config.yml" --rm -it ukfast/gitlab-registry-cleanup execute --config /config.yml
83+
docker run -v "${PWD}/config.yml:/config.yml" -e ACCESS_TOKEN=abcdef --rm -it ukfast/gitlab-registry-cleanup execute --config /config.yml
8284
```

0 commit comments

Comments
 (0)