diff --git a/scripts/deployment.sh b/scripts/deployment.sh index 41cb65cb70537265578703085319fba3be6d7b00..d7819825707a17dce56a0c6f6f0bf9895456ccae 100755 --- a/scripts/deployment.sh +++ b/scripts/deployment.sh @@ -31,10 +31,10 @@ echo "Proceeding as user $(whoami)" # Make the necessary folders for the airflow artefacts and copy the corresponging content mkdir -p ./dags ./logs ./plugins ./config ./templates cd $GIT_REPO -cp dags/* $AIRFLOW_DIR/dags +cp -r dags/* $AIRFLOW_DIR/dags cp -r plugins/* $AIRFLOW_DIR/plugins cp config/* $AIRFLOW_DIR/config -cp templates/* $AIRFLOW_DIR/templates +cp -r templates/* $AIRFLOW_DIR/templates # Setup environment variables and install requirements echo -e "AIRFLOW_UID=$(id -u)" > $GIT_REPO/dockers/.env export AIRFLOW_UID=$(id -u) @@ -58,4 +58,4 @@ docker-compose -f $GIT_REPO/dockers/docker-compose.yaml --project-directory $AIR # nohup docker-compose logs -f >/app/mnt/docker.log & # or similar to capture docker log TODO (seems to cause gitlab CI to hang) -cd $OLD_DIR \ No newline at end of file +cd $OLD_DIR