Skip to content

Commit

Permalink
update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelreit committed Aug 9, 2024
1 parent 8100803 commit cd1e6b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand All @@ -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/
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cd1e6b1

Please sign in to comment.