diff --git a/.drone.yml b/.drone.yml index fc86dbf..d84fbcc 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 "/' /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: