Skip to content
Snippets Groups Projects
Commit 973d21a4 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

exec command ln -s automatically

parent a96d1822
No related branches found
No related tags found
No related merge requests found
Pipeline #119119 failed
...@@ -409,6 +409,9 @@ load-website:prod: ...@@ -409,6 +409,9 @@ load-website:prod:
- echo "Le pod est ready" - 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}') - 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} cp .output/public/ ${WIKI_POD}:/website
- |
kubectl --namespace ${NAMESPACE} ${WIKI_POD}
exec -- 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 {} +'
################ DEPLOY ########################## ################ DEPLOY ##########################
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment