Skip to content

Commit

Permalink
fix: got rid of transfer job from ml workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmin17 committed Nov 28, 2023
1 parent e024373 commit c0dc684
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ml_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Transfer Recommendation Script
run: |
set +x
echo "${{ secrets.PEM }}" > key.pem
set -x
chmod 600 key.pem
scp -i ./"key.pem" ./recommendation_pipeline.sh -o StrictHostKeyChecking=no ec2-user@${{ secrets.CLOUD_URL }}:~
# - name: Transfer Recommendation Script
# run: |
# set +x
# echo "${{ secrets.PEM }}" > key.pem
# set -x
# chmod 600 key.pem
# scp -i ./"key.pem" ./recommendation_pipeline.sh -o StrictHostKeyChecking=no ec2-user@${{ secrets.CLOUD_URL }}:~

- name: Sync ML Code
run: |
Expand Down
6 changes: 3 additions & 3 deletions recommend/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit c0dc684

Please sign in to comment.