diff --git a/.github/workflows/ml_update.yml b/.github/workflows/ml_update.yml index ff2f132..684defb 100644 --- a/.github/workflows/ml_update.yml +++ b/.github/workflows/ml_update.yml @@ -29,6 +29,8 @@ jobs: set -x chmod 600 key.pem scp -i ./"key.pem" -o StrictHostKeyChecking=no ./recommendation_pipeline.sh ec2-user@${{ secrets.CLOUD_URL }}:~ + scp -i ./"key.pem" -o StrictHostKeyChecking=no ./cron_routine.sh ec2-user@${{ secrets.CLOUD_URL }}:~ + chmod +x recommendation_pipeline.sh - name: Sync ML Code run: | diff --git a/recommend/entrypoint.sh b/recommend/entrypoint.sh index c2f1029..b2df974 100644 --- a/recommend/entrypoint.sh +++ b/recommend/entrypoint.sh @@ -6,9 +6,9 @@ set -e # Set environment variables for S3 bucket and file paths -S3_BUCKET=${S3_BUCKET} -EVENT_FILE="eventData.csv" -USER_FILE="userData.csv" +# S3_BUCKET=${S3_BUCKET} +# EVENT_FILE="eventData.csv" +# USER_FILE="userData.csv" # Use AWS CLI to download the CSV file from S3 aws s3 cp s3://${S3_BUCKET}/${EVENT_FILE} /app/ diff --git a/recommendation_pipeline.sh b/recommendation_pipeline.sh old mode 100644 new mode 100755