Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fivlao authored Jan 7, 2024
1 parent 94fc951 commit c3e2eff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
- name: Build Docker image
run: |
printf "%s\n" "${{ secrets.PRIVATE_KEY }}" > id_rsa.pem
chmod 400 id_rsa.pem
cat id_rsa.pem
docker build . -f ./Dockerfile -t fivlao/sound:latest-dev
docker save fivlao/sound:latest-dev | ssh -o StrictHostKeyChecking=no -i "id_rsa.pem" -C ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }} sudo docker load

0 comments on commit c3e2eff

Please sign in to comment.