This commit is contained in:
parent
b46894dccf
commit
0aaf5970a8
1 changed files with 5 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue