meta: fix abuild key importing

This commit is contained in:
ptrcnull 2023-01-08 13:48:27 +01:00
parent ee9e034146
commit cd14187cb1

View file

@ -13,13 +13,21 @@ default:
key: repodest
paths: [repodest/]
before_script:
# setup ssh
- apk add openssh-keygen
- mkdir $HOME/.ssh
- chmod 600 $PRIVATE_KEY
- echo "repo.ptrc.gay ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGTcxqAgqWGqVDH5lscsXVp6eWxFblarg+YA1EPxjUvm" > $HOME/.ssh/known_hosts
- echo "IdentityFile $PRIVATE_KEY" > $HOME/.ssh/config
- mkdir -p /home/buildozer/.abuild
- cp $PACKAGER_PRIVKEY /home/buildozer/.abuild/privkey
- echo "PACKAGER_PRIVKEY=/home/buildozer/.abuild/privkey" > /home/buildozer/.abuild/abuild.conf
# setup abuild
- confdir=/home/buildozer/.abuild
- keyname=alpine@ptrcnull.me-60610fa4.rsa
- mkdir -p $confdir
- cp $PACKAGER_PRIVKEY $confdir/$keyname
- chown 600 $confdir/$keyname
- echo "PACKAGER_PRIVKEY=$confdir/$keyname" > $confdir/abuild.conf
- ssh-keygen -e -m pkcs8 -f $confdir/$keyname > $confdir/$keyname.pub
# add our own key to trusted keys
- cp ptrcports-keys/*.pub /etc/apk/keys/
- chown -R 1000:1000 /home/buildozer
- mkdir -p repodest