Skip to content

Commit 53680c9

Browse files
committed
Update readme with github action instructions
1 parent 29213a8 commit 53680c9

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,26 @@
1-
# MySQL to SQLite3 (Docker)
1+
# MySQL to SQLite3 (Docker + Github action)
22

33
Implements [MySQL to SQLite3][link-sql] as a docker utility
44

5-
## How to use
5+
## How to use as docker
66

77
```
8-
docker run --rm -v ${PWD}:/output benrowe/mysql-to-sqlite3 mysql2sqlite -f /output/export.sqlite3 -d database_name -u username -h host.docker.internal -p password
8+
docker run --rm -v ${PWD}:/output benrowe/mysql-to-sqlite3 database_name username host.docker.internal password path/to/file
9+
```
10+
11+
## How to use as github action
12+
13+
The github action runs this command inside the docker file, so the host will need to point to the host machien
14+
15+
```
16+
- name: Convert to SQLite
17+
uses: benrowe/mysql-to-sqlite3-docker@v1
18+
with:
19+
output: /path/to/file
20+
database: database
21+
host: localhost
22+
username: root
23+
password: password
924
```
1025

1126
[link-sql]:https://github.com/techouse/mysql-to-sqlite3

0 commit comments

Comments
 (0)