meta: fix abuild key importing
This commit is contained in:
parent
ee9e034146
commit
cd14187cb1
1 changed files with 11 additions and 3 deletions
|
@ -13,13 +13,21 @@ default:
|
||||||
key: repodest
|
key: repodest
|
||||||
paths: [repodest/]
|
paths: [repodest/]
|
||||||
before_script:
|
before_script:
|
||||||
|
# setup ssh
|
||||||
|
- apk add openssh-keygen
|
||||||
- mkdir $HOME/.ssh
|
- mkdir $HOME/.ssh
|
||||||
- chmod 600 $PRIVATE_KEY
|
- chmod 600 $PRIVATE_KEY
|
||||||
- echo "repo.ptrc.gay ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGTcxqAgqWGqVDH5lscsXVp6eWxFblarg+YA1EPxjUvm" > $HOME/.ssh/known_hosts
|
- echo "repo.ptrc.gay ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIGTcxqAgqWGqVDH5lscsXVp6eWxFblarg+YA1EPxjUvm" > $HOME/.ssh/known_hosts
|
||||||
- echo "IdentityFile $PRIVATE_KEY" > $HOME/.ssh/config
|
- echo "IdentityFile $PRIVATE_KEY" > $HOME/.ssh/config
|
||||||
- mkdir -p /home/buildozer/.abuild
|
# setup abuild
|
||||||
- cp $PACKAGER_PRIVKEY /home/buildozer/.abuild/privkey
|
- confdir=/home/buildozer/.abuild
|
||||||
- echo "PACKAGER_PRIVKEY=/home/buildozer/.abuild/privkey" > /home/buildozer/.abuild/abuild.conf
|
- 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/
|
- cp ptrcports-keys/*.pub /etc/apk/keys/
|
||||||
- chown -R 1000:1000 /home/buildozer
|
- chown -R 1000:1000 /home/buildozer
|
||||||
- mkdir -p repodest
|
- mkdir -p repodest
|
||||||
|
|
Loading…
Reference in a new issue