Skip to content

Commit 81e0f88

Browse files
author
Piotr Buliński
committed
Update README.md
1 parent 1d10443 commit 81e0f88

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

README.md

+12-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Once compiled, the resulting s3 binary must be placed in /usr/lib/apt/methods/ a
2222

2323
Finally, this is how you add it to the /etc/apt/sources.list file if you want your credentials in the url:
2424

25-
deb s3://AWS_ACCESS_ID:[AWS_SECRET_KEY_IN_BRACKETS]@s3.amazonaws.com/BUCKETNAME prod main
25+
deb s3://AWS_ACCESS_ID:[AWS_SECRET_KEY_IN_BRACKETS]@s3-ENDPOINT.amazonaws.com/BUCKETNAME prod main
2626

2727
otherwise leave off the credentials and it will draw them from the environment variables `AWS_ACCESS_KEY_ID` and `AWS_SECRET_KEY_ID`.
2828

@@ -40,3 +40,14 @@ To synchronize local repository to s3 as read-only, execute:
4040

4141
s3cmd sync /srv/apt-repo-dir/dists s3://bucket_name
4242
s3cmd sync /srv/apt-repo-dir/pool s3://bucket_name
43+
44+
## Using GPG keys
45+
46+
If you're signing you repository with key, export it to server:
47+
48+
gpg --send-keys XXXXXXXX
49+
50+
then import it and install to apt:
51+
52+
gpg --recv-keys XXXXXXXX
53+
gpg -a --export XXXXXXXX | [sudo] apt-key add -

0 commit comments

Comments
 (0)