VenkateshRoshan commited on
Commit
ac81936
·
1 Parent(s): dd548bb

deploy file updated

Browse files
Files changed (1) hide show
  1. .github/workflows/deploy.yml +8 -8
.github/workflows/deploy.yml CHANGED
@@ -26,18 +26,18 @@ jobs:
26
 
27
  # 841162707028.dkr.ecr.us-east-1.amazonaws.com/image/caption-generator
28
 
29
- - name: Build, tag, and push Docker image
30
- run: |
31
- docker build -t image/caption-generator .
32
- docker tag image/caption-generator:latest 841162707028.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/image/caption-generator:latest
33
- docker push 841162707028.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/image/caption-generator:latest
34
 
35
  - name: Setup SSH Key
36
  run: |
37
  mkdir -p ~/.ssh
38
- echo "${{ secrets.EC2_PRIVATE_KEY }}" > ~/.ssh/private_key
39
- chmod 600 ~/.ssh/private_key
40
- ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
41
 
42
  # check via ssh if the key is working
43
  - name: Check SSH Connection
 
26
 
27
  # 841162707028.dkr.ecr.us-east-1.amazonaws.com/image/caption-generator
28
 
29
+ # - name: Build, tag, and push Docker image
30
+ # run: |
31
+ # docker build -t image/caption-generator .
32
+ # docker tag image/caption-generator:latest 841162707028.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/image/caption-generator:latest
33
+ # docker push 841162707028.dkr.ecr.${{ secrets.AWS_REGION }}.amazonaws.com/image/caption-generator:latest
34
 
35
  - name: Setup SSH Key
36
  run: |
37
  mkdir -p ~/.ssh
38
+ sudo echo "${{ secrets.EC2_PRIVATE_KEY }}" > ~/.ssh/private_key
39
+ sudo chmod 600 ~/.ssh/private_key
40
+ sudo ssh-keyscan -H ${{ secrets.EC2_HOST }} >> ~/.ssh/known_hosts
41
 
42
  # check via ssh if the key is working
43
  - name: Check SSH Connection