Skip to content

Commit

Permalink
fix: docker-compose yml 위치 env 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
ymkim97 committed Jan 2, 2025
1 parent 46dbd47 commit 1326391
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cd-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,15 @@ jobs:
- name: AWS EC2 Server Deploy
uses: appleboy/ssh-action@master
env:
COMPOSE: "home/ubuntu/infra/docker-compose-dev.yml"
COMPOSE: "home/ubuntu/tnt/infra/docker-compose-dev.yml"
with:
envs: COMPOSE
host: ${{ secrets.EC2_DEV_HOST }}
username: ${{ secrets.EC2_DEV_USERNAME }}
key: ${{ secrets.EC2_DEV_KEY }}
port: ${{ secrets.EC2_SSH_PORT }}
script: |
docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_TOKEN }}
echo "${{ secrets.DOCKER_HUB_TOKEN }}" | docker login -u "${{ secrets.DOCKER_HUB_USERNAME }}" --password-stdin
docker-compose -f $COMPOSE down --rmi all
docker pull ${{ secrets.DOCKER_HUB_USERNAME }}/${{ secrets.DOCKER_HUB_REPO }}
docker-compose -f $COMPOSE up -d
Expand Down

0 comments on commit 1326391

Please sign in to comment.