From 81008032fce64d9513b88f582a9a02f21de38ad8 Mon Sep 17 00:00:00 2001 From: insinnox Date: Fri, 9 Aug 2024 19:18:45 +0200 Subject: [PATCH] update cd.yml --- .github/workflows/cd.yml | 8 ++++---- docker-compose.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8217ee7..549447c 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -61,8 +61,8 @@ jobs: host: ${{ env.SSH_HOST }} username: ${{ env.SSH_USER }} key: ${{ env.SSH_PRIVATE_KEY }} - source: docker-compose.yml - target: /home/${{ env.SSH_USER }}/ + source: "docker-compose.yml" + target: "~/docker-compose.yml" - name: Copy SQL file to server uses: appleboy/scp-action@v0.1.7 @@ -70,8 +70,8 @@ jobs: host: ${{ env.SSH_HOST }} username: ${{ env.SSH_USER }} key: ${{ env.SSH_PRIVATE_KEY }} - source: ./src/main/resources/db/migration/V0_9_0__initial_db_creation.sql - target: /home/${{ env.SSH_USER }}/ + source: "src/main/resources/db/migration/V0_9_0__initial_db_creation.sql" + target: "~/test.sql" - name: Pull image and start container uses: appleboy/ssh-action@v1.0.3 diff --git a/docker-compose.yml b/docker-compose.yml index 6005cba..325379d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,7 +21,7 @@ services: MYSQL_PASSWORD: password # Set the password for the user volumes: - db_data:/var/lib/mysql # Persist MySQL data - - V0_9_0__initial_db_creation.sql:/docker-entrypoint-initdb.d/init.sql # Mount the SQL script + - test.sql:/docker-entrypoint-initdb.d/init.sql # Mount the SQL script networks: api-demo-network: