Skip to content

Commit

Permalink
chore: Update Docker deployment workflow to use absolute path for loa…
Browse files Browse the repository at this point in the history
…ding image
  • Loading branch information
aridanemartin committed Jun 29, 2024
1 parent 0682580 commit 14b565f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: docker build -t gatos-sin-hogar-backend .

- name: Save Docker image to a tar file
run: docker save gatos-sin-hogar-backend > gatos-sin-hogar-backend.tar
run: docker save gatos-sin-hogar-backend > ~/gatos-sin-hogar-backend.tar

- name: Copy Docker image to EC2
uses: appleboy/scp-action@v0.1.7
Expand All @@ -39,7 +39,7 @@ jobs:
key: ${{ secrets.EC2_KEY }}
script: |
sudo systemctl status docker || sudo systemctl start docker
docker load --input ~/gatos-sin-hogar-backend.tar
docker stop gatos-sin-hogar-backend || true
docker rm gatos-sin-hogar-backend || true
docker run -d --name gatos-sin-hogar-backend -p 80:7000 gatos-sin-hogar-backend
sudo docker load --input ~/gatos-sin-hogar-backend.tar
sudo docker stop gatos-sin-hogar-backend || true
sudo docker rm gatos-sin-hogar-backend || true
sudo docker run -d --name gatos-sin-hogar-backend -p 80:7000 gatos-sin-hogar-backend

0 comments on commit 14b565f

Please sign in to comment.