Skip to content

Commit

Permalink
chore: Update Docker deployment workflow to use relative 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 14b565f commit 9fec923
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 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 > backend

- 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
sudo docker load --input ~/gatos-sin-hogar-backend.tar
sudo docker load --input ~/backend/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 9fec923

Please sign in to comment.