From f4d6b68287c1e8fbc5306b9d457f4cc1ccb4c3fc Mon Sep 17 00:00:00 2001 From: Remi PLANEL <rplanel@pasteur.fr> Date: Fri, 22 Dec 2023 09:40:52 +0100 Subject: [PATCH] one line --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index be759a1c..540287d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -439,9 +439,7 @@ load-website:prod: - echo "Le pod est ready" - WIKI_POD=$(kubectl --namespace ${NAMESPACE} get pods -l "app.kubernetes.io/name=df-wiki" --output jsonpath='{.items[0].metadata.name}') - kubectl --namespace ${NAMESPACE} cp .output/public/ ${WIKI_POD}:/website - - | - kubectl --namespace ${NAMESPACE} - exec ${WIKI_POD} -- bash -c 'cd /structure-data/sanitized-dump && find * -type d -exec sh -c "for d in "$@"; do (cd "/usr/share/nginx/html/$d"; cp --archive --recursive --symbolic-link /structure-data/sanitized-dump/$d/* .) done" argv0 {} +' + - kubectl --namespace ${NAMESPACE} exec ${WIKI_POD} -- bash -c 'cd /structure-data/sanitized-dump && find * -type d -exec sh -c "for d in $@; do (cd /usr/share/nginx/html/$d; cp --archive --recursive --symbolic-link /structure-data/sanitized-dump/$d/* .) done" argv0 {} +' -- GitLab