From cd1e6b1263632bdcabbda71b5e59587b11cdba22 Mon Sep 17 00:00:00 2001 From: insinnox Date: Fri, 9 Aug 2024 19:34:49 +0200 Subject: [PATCH] update cd.yml --- .github/workflows/cd.yml | 3 ++- docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 549447c..42f75e9 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -71,7 +71,7 @@ jobs: username: ${{ env.SSH_USER }} key: ${{ env.SSH_PRIVATE_KEY }} source: "src/main/resources/db/migration/V0_9_0__initial_db_creation.sql" - target: "~/test.sql" + target: "~/src/main/resources/db/migration/V0_9_0__initial_db_creation.sql" - name: Pull image and start container uses: appleboy/ssh-action@v1.0.3 @@ -84,3 +84,4 @@ jobs: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin docker compose up -d rm -rf docker-compose.yml + rm -rf src/ diff --git a/docker-compose.yml b/docker-compose.yml index 325379d..47fc044 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 - - test.sql:/docker-entrypoint-initdb.d/init.sql # Mount the SQL script + - ./src/main/resources/db/migration/V0_9_0__initial_db_creation.sql:/docker-entrypoint-initdb.d/init.sql # Mount the SQL script networks: api-demo-network: