Skip to content
Snippets Groups Projects
Verified Commit 808d3151 authored by Kristian Klausen's avatar Kristian Klausen :tada:
Browse files

gitlab_runner: Replace artifact workaround with better upstream solution

Upstream now provides a solution for setting the "staging dir" for
fastzip[1].

[1] https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3130
parent 8d994674
No related branches found
No related tags found
1 merge request!385gitlab_runner: Add VM based executor (libvirt-executor)
......@@ -129,12 +129,7 @@ prepare() {
run() {
vm_name="$(get_vm_name)"
wait_for_ssh "${vm_name}"
# Upstream issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/28189
if [[ "${2}" == *'_artifacts'* ]]; then
ssh 'TMPDIR=/var/tmp bash' < "${1}" || exit "${BUILD_FAILURE_EXIT_CODE:-1}"
else
ssh bash < "${1}" || exit "${BUILD_FAILURE_EXIT_CODE:-1}"
fi
ssh bash < "${1}" || exit "${BUILD_FAILURE_EXIT_CODE:-1}"
}
# https://docs.gitlab.com/runner/executors/custom.html#cleanup
......
......@@ -33,6 +33,7 @@ listen_address = ":9252"
builds_dir = "/builds"
cache_dir = "/cache"
limit = {{ (ansible_memtotal_mb * 0.9 / 1024) | round | int }}
environment = ["ARCHIVER_STAGING_DIR=/var/tmp"]
[runners.custom]
prepare_exec = "/usr/local/bin/libvirt-executor"
prepare_args = [ "prepare" ]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment