From c3e2eff20b156257a0e3d6cee615accd929d0c2b Mon Sep 17 00:00:00 2001 From: Oleh Kulish <47536433+fivlao@users.noreply.github.com> Date: Sun, 7 Jan 2024 17:25:35 +0200 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a123292..1e6a86d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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