Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriqueAmorim20 committed Oct 24, 2023
1 parent 764ad0d commit b50cfe1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
tags: ['v*.*.*']

env:
TARGET_DIR: '~/api/${{ github.event.repository.name }}'
TARGET_DIR: '~/${{ github.event.repository.name }}'

jobs:
docker-hub:
Expand Down Expand Up @@ -43,9 +43,9 @@ jobs:
key: ${{ secrets.EC2_SSH_KEY }}
script: |
cd ${{env.TARGET_DIR}}
git pull
git checkout CD_test_branch
git pull
sudo git pull
sudo git checkout CD_test_branch
sudo git pull
sudo docker compose stop
sudo docker compose rm gerocuidado-usuario-api-prod
sudo docker compose -f docker-compose.prod.yml up -V --force-recreate --build -d

0 comments on commit b50cfe1

Please sign in to comment.