chore: build changes

This commit is contained in:
nyyu 2023-12-26 09:46:12 +01:00
parent 5b72d3742c
commit ffc713920a
2 changed files with 6 additions and 5 deletions

View file

@ -1,6 +1,6 @@
steps:
build:
image: archlinux:base-devel
image: archlinux/archlinux:base-devel
pull: true
volumes:
- /mnt/archlinux/nyyu:/repo
@ -13,7 +13,6 @@ steps:
- "echo 'build ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers"
- mkdir /build
- chown -R build:build . /build
- env
- 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'
- sudo -u build --preserve-env=CI_REPO_CLONE_URL,CI_COMMIT_BRANCH,CI_PREV_COMMIT_SHA,GIT_PASSWORD sh -c './build.sh'
secrets: [pgp_id, pgp_key, pgp_pwd, git_password]