aur/.woodpecker.yml

27 lines
1.2 KiB
YAML
Raw Normal View History

2022-11-16 22:07:36 +01:00
pipeline:
build:
2022-07-14 09:51:09 +02:00
image: archlinux:base-devel
2022-11-16 22:07:36 +01:00
pull: true
2022-07-14 09:51:09 +02:00
volumes:
2022-11-16 22:07:36 +01:00
- /mnt/archlinux/nyyu:/repo
2022-07-14 09:51:09 +02:00
commands:
- cp -f conf/{makepkg,pacman}.conf /etc/
- cat conf/pacman-conf.d-noextract.conf >> /etc/pacman.conf
- 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
2022-08-01 07:58:04 +02:00
- pacman-key --init
2023-03-18 13:43:33 +01:00
- pacman -Syu git jq pacman-contrib pandoc-bin unzip --noconfirm
2022-07-14 09:51:09 +02:00
- useradd build -m
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- chown -R build:build .
- sudo -u build --preserve-env=PGP_KEY,PGP_PWD,PGP_ID sh -c 'mkdir ~/.gnupg && echo -e "default-cache-ttl 3600\nallow-preset-passphrase" > ~/.gnupg/gpg-agent.conf && echo "$PGP_KEY" | gpg --import --no-tty --batch --yes && echo "$PGP_PWD" | /usr/lib/gnupg/gpg-preset-passphrase --preset $PGP_ID'
2022-11-16 22:07:36 +01:00
- sudo -u build --preserve-env=CI_REPO_REMOTE,CI_COMMIT_BRANCH,CI_PREV_COMMIT_SHA,GIT_PASSWORD sh -c './build.sh'
secrets: [pgp_id, pgp_key, pgp_pwd, git_password]
when:
2022-11-21 18:16:47 +01:00
branch: master
event:
- push
- cron
- tag
2022-12-25 11:49:08 +01:00
- manual