diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4eb71a..37449c9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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