diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6372545..68f689b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -16,7 +16,7 @@ vauxite-compose-job: before_script: - printf "fastestmirror=True\ndeltarpm=True\n" | tee -a /etc/dnf/dnf.conf - dnf update -y - - dnf install -y ostree podman rpm-ostree rsync + - dnf install -y git git-core ostree podman rpm-ostree rsync - podman login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY script: - mkdir -p "$(pwd)/.tmp" @@ -25,9 +25,10 @@ vauxite-compose-job: echo "Previous build repo not found. Initialize new build repo in archive mode." ostree --repo="${BUILD_REPO}" init --mode=archive fi - - if [ ! -d "${SOURCE_REPO}/.git" ]; then - echo "Source repo not found. Clone from upstream." - git clone -b "f${RELVER}" "${SOURCE_URL}" "${SOURCE_REPO}" + - | + if [ ! -d "${SOURCE_REPO}/.git" ]; then + echo "Source repo not found. Clone from upstream." + git clone -b "f${RELVER}" "${SOURCE_URL}" "${SOURCE_REPO}" fi - rsync -aAX "${SOURCE_REPO}"/ "$(pwd)/.tmp" - rsync -aAX "$(pwd)/src/" "$(pwd)/.tmp"