CI: Store .repo file as artifacts. Fixes #1458

Note: only store them for the Base jobs b/c these files are produced
by deploy.sh and will be the same across jobs in the same pipeline.
This commit is contained in:
Alexander Todorov 2021-06-10 11:51:08 +03:00 committed by Alexander Todorov
parent 68219bd92a
commit 968e7b210f
2 changed files with 11 additions and 0 deletions

View file

@ -89,6 +89,11 @@ Base:
# see COMPOSER-918
# - aws/rhel-8.4-aarch64
INTERNAL_NETWORK: ["true"]
artifacts:
paths:
- journal-log
- "*.repo"
when: always
OSTree:
stage: test

View file

@ -106,3 +106,9 @@ fi
greenprint "Installing test packages for ${PROJECT}"
# Note: installing only -tests to catch missing dependencies
retry sudo dnf -y install "${PROJECT}-tests"
if [ -n "${CI}" ]; then
# copy repo files b/c GitLab can't upload artifacts
# which are outside the build directory
cp /etc/yum.repos.d/*.repo "$(pwd)"
fi