Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ajithvcoder committed Nov 4, 2024
1 parent 9ddc26e commit 916c661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ec2-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ jobs:
sudo apt-get update
sudo apt-get install -y jq
# Note this is not proper method we need to use github actions to getch commit id
- name: Get latest commit ID from the repository
id: get_commit_id
env:
Expand Down Expand Up @@ -208,7 +209,7 @@ jobs:
bucket_name="mybucket-emlo-mumbai/session-08-checkpoint/" # Change to your S3 bucket name
s3_key="session-08-checkpoint/${{ env.COMMIT_ID }}/$(basename "$checkpoint_path")" # Define S3 key
echo "Uploading $checkpoint_path to s3://$bucket_name/$s3_key"
aws s3 cp "$checkpoint_path" "s3://$bucket_name/$s3_key" --recursive
aws s3 cp "$checkpoint_path" "s3://$bucket_name/$s3_key"
- name: Clean previous images and containers
run: |
Expand Down

0 comments on commit 916c661

Please sign in to comment.