From ffc713920a8019f7976725d34c184091aba65e87 Mon Sep 17 00:00:00 2001 From: nyyu Date: Tue, 26 Dec 2023 09:46:12 +0100 Subject: [PATCH] chore: build changes --- .woodpecker.yml | 3 +-- build.sh | 8 +++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e40868c..e42b4d2 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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] diff --git a/build.sh b/build.sh index ddb0c00..4963c7a 100755 --- a/build.sh +++ b/build.sh @@ -86,9 +86,11 @@ while read -r p; do cd .. done