Skip to content

Commit

Permalink
chore: Update Docker deployment workflow to copy .env file to EC2
Browse files Browse the repository at this point in the history
  • Loading branch information
aridanemartin committed Jun 29, 2024
1 parent 0a82cec commit ffc7fac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ jobs:
- name: Save Docker image to a tar file
run: docker save gatos-sin-hogar-backend > gatos-sin-hogar-backend.tar

- name: Copy Docker image to EC2
- name: Copy Docker image and .env to EC2
uses: appleboy/scp-action@v0.1.7
with:
host: ${{ secrets.EC2_HOST }}
username: ${{ secrets.EC2_USER }}
key: ${{ secrets.EC2_KEY }}
source: 'gatos-sin-hogar-backend.tar'
source: |
gatos-sin-hogar-backend.tar
.env
target: '~/'

- name: SSH into EC2 and load the Docker image
Expand Down

0 comments on commit ffc7fac

Please sign in to comment.