From f83380fc6163db52a5bee039c17bcaadff2e59a7 Mon Sep 17 00:00:00 2001 From: jkito <belter@riseup.net> Date: Sun, 14 Jul 2024 21:11:29 +0530 Subject: [PATCH] ci: use env variable for the job build dir this uses $CI_PROJECT_DIR instead of a hardcoded path for the project's build dir in the arch pkg job, the hardcoded path doesn't exist if job run is from a forked repo --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 475874f7..93c7ef9d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -54,8 +54,8 @@ arch: # makepkg does not run as root, but it needs sudo to install dependencies - "cd /home/non_root && sudo -u non_root make package_arch" - "cd /home/non_root && pacman -U ArchLinux/*tar.zst --noconfirm" - # artifacts must be relative to the working directory (/builds/leap/bitmask-vpn) - - "cp /home/non_root/ArchLinux/*.tar.zst /builds/leap/bitmask-vpn" + # artifacts must be relative to the working directory (e.g. /builds/leap/bitmask-vpn) + - "cp /home/non_root/ArchLinux/*.tar.zst $CI_PROJECT_DIR" artifacts: paths: - '*.tar.zst' -- GitLab