pwgen and git not available in container
This commit is contained in:
parent
672caacb7e
commit
52a5e442e1
10
aptly.sh
10
aptly.sh
@ -1,18 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
passphrase="$(pwgen -1 -n 20)"
|
||||
|
||||
cat >keyparms <<EOF
|
||||
%echo Generating a basic OpenPGP key
|
||||
Key-Type: DSA
|
||||
Key-Length: 1024
|
||||
Subkey-Type: ELG-E
|
||||
Subkey-Length: 1024
|
||||
Name-Real: $(git config user.name)
|
||||
Name-Real: $USER_NAME
|
||||
Name-Comment: dev deb repo
|
||||
Name-Email: $(git config user.email)
|
||||
Name-Email: $USER_EMAIL
|
||||
Expire-Date: 0
|
||||
Passphrase: ${passphrase}
|
||||
Passphrase: $PASSPHRASE
|
||||
%commit
|
||||
%echo done
|
||||
EOF
|
||||
@ -22,5 +20,5 @@ gpg --export --armor > /signing-key/dev.pubkey
|
||||
|
||||
aptly repo create --component="main" --distribution="ubuntu" dev
|
||||
aptly repo add dev /packages
|
||||
aptly publish repo --batch --passphrase="${passphrase}" dev
|
||||
aptly publish repo --batch --passphrase="$PASSPHRASE" dev
|
||||
aptly serve
|
||||
|
Loading…
Reference in New Issue
Block a user