Skip to content

Commit

Permalink
chore: modify docker-compose path routes
Browse files Browse the repository at this point in the history
YAP-45
  • Loading branch information
yesjjin99 committed Jan 6, 2025
1 parent 9135096 commit 2013b15
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/dev-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
key: ${{ secrets.DEV_SSH_KEY }}
port: ${{ secrets.DEV_SSH_PORT }}
source: "docker/docker-compose.yml,docker/scripts/docker-install.sh"
target: 'compose/'
target: 'compose'
rm: true

- name: SSH remote and Run Docker Compose
Expand All @@ -115,7 +115,7 @@ jobs:
port: ${{ secrets.DEV_SSH_PORT }}
envs: SPRING_DATABASE_SCHEMA,SPRING_DATABASE_USERNAME,SPRING_DATABASE_PASSWORD,SPRING_DATABASE_HOST,IMAGE_TAG,DOCKERHUB_USERNAME,DOCKERHUB_REPOSITORY_NAME
script: |
cd compose/
cd compose/docker/
sudo touch .env
sudo echo "
SPRING_DATABASE_SCHEMA=$SPRING_DATABASE_SCHEMA
Expand All @@ -125,10 +125,10 @@ jobs:
IMAGE_TAG=$IMAGE_TAG
DOCKERHUB_USERNAME=$DOCKERHUB_USERNAME
DOCKERHUB_REPOSITORY_NAME=$DOCKERHUB_REPOSITORY_NAME"| sudo tee .env
sh ./docker/scripts/docker-install.sh
sh ./scripts/docker-install.sh
sudo docker pull $DOCKERHUB_USERNAME/$DOCKERHUB_REPOSITORY_NAME:$IMAGE_TAG
sudo docker-compose -f ./docker/docker-compose.yml down
sudo docker-compose -f ./docker/docker-compose.yml up -d
sudo docker-compose down
sudo docker-compose up -d
- name: Remove Github Actions IP from security group
run: |
Expand Down

0 comments on commit 2013b15

Please sign in to comment.