add key
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
nyyu 2021-05-19 16:29:42 +02:00
parent b46894dccf
commit 0aaf5970a8

View file

@ -10,12 +10,15 @@ steps:
path: /repo
commands:
- sed -i 's/# REPOSITORIES/[nyyu]\nServer = https:\\/\\/archlinux.nyyu.dev\\/nyyu\nSigLevel = Never/' /etc/pacman.conf
- sed -i 's/#PACKAGER=".*"/PACKAGER="nyyu <mail@nyyu.dev>"/' /etc/makepkg.conf
- pacman -Syu git --noconfirm
- useradd build -m
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- chown -R build:build .
- sudo -u build sh -c './build.sh'
- sudo -u build --preserve-env=PGP_KEY sh -c 'echo "$PGP_KEY" | gpg --import --no-tty --batch --yes && ./build.sh'
environment:
PGP_KEY:
from_secret: PGP_KEY
volumes:
- name: repo
host: