From 570d1e4f909031c580cf14f754a0f74153f1f305 Mon Sep 17 00:00:00 2001 From: HyejiYu <90139122+HyejiYu@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:23:41 +0900 Subject: [PATCH 1/2] Update consumer-actions.yml --- .github/workflows/consumer-actions.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/consumer-actions.yml b/.github/workflows/consumer-actions.yml index 6ec3109..60df91b 100644 --- a/.github/workflows/consumer-actions.yml +++ b/.github/workflows/consumer-actions.yml @@ -30,8 +30,8 @@ jobs: mkdir -p ~/.ssh echo "${GCE_SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./messagequeue/consumer/HomePlus_consumer.py ${GCE_USER}@${GCE_IP}:${GCE_USER_HOME}/HomePlus_consumer.py - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./messagequeue/consumer/Oasis_consumer.py ${GCE_USER}@${GCE_IP}:${GCE_USER_HOME}/Oasis_consumer.py - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./messagequeue/consumer/Posty_consumer.py ${GCE_USER}@${GCE_IP}:${GCE_USER_HOME}/Posty_consumer.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/messagequeue/consumer/HomePlus_consumer.py" ${GCE_USER}@${GCE_IP}:${GCE_USER_HOME}/HomePlus_consumer.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/messagequeue/consumer/Oasis_consumer.py" ${GCE_USER}@${GCE_IP}:${GCE_USER_HOME}/Oasis_consumer.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/messagequeue/consumer/Posty_consumer.py" ${GCE_USER}@${GCE_IP}:${GCE_USER_HOME}/Posty_consumer.py From b69f29188f10896dc8fa48620c41452a0e4a9e23 Mon Sep 17 00:00:00 2001 From: HyejiYu <90139122+HyejiYu@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:24:34 +0900 Subject: [PATCH 2/2] Update dag-actions.yml --- .github/workflows/dag-actions.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dag-actions.yml b/.github/workflows/dag-actions.yml index 6a3b123..693a21a 100644 --- a/.github/workflows/dag-actions.yml +++ b/.github/workflows/dag-actions.yml @@ -41,8 +41,8 @@ jobs: mkdir -p ~/.ssh echo "${GCE_SSH_PRIVATE_KEY}" > ~/.ssh/id_rsa chmod 600 ~/.ssh/id_rsa # SSH 키 권한 설정 - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./airflow/HomePlus_dag.py ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/HomePlus_dag.py - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./airflow/Oasis_dag.py ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/Oasis_dag.py - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./airflow/requirements/modules.py ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/requirements/modules.py - rsync -avz -e "ssh -o StrictHostKeyChecking=no" ./airflow/requirements/packages.py ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/requirements/packages.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/airflow/HomePlus_dag.py" ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/HomePlus_dag.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/airflow/Oasis_dag.py" ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/Oasis_dag.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/airflow/requirements/modules.py" ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/requirements/modules.py + rsync -avz -e "ssh -o StrictHostKeyChecking=no" "$GITHUB_WORKSPACE/airflow/requirements/packages.py" ${GCE_USER}@${GCE_IP}:${GCE_AIRFLOW_HOME}/dags/requirements/packages.py