Skip to content

Commit

Permalink
update readme (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
noamcattan authored Sep 6, 2023
1 parent 88f3609 commit ba7f4bc
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,27 @@ on:
jobs:
sync:
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_DATABASE: dev
MYSQL_ROOT_PASSWORD: pass
ports:
- 3306:3306
options: >-
--health-cmd "mysqladmin ping -ppass"
--health-interval 10s
--health-start-period 10s
--health-timeout 5s
--health-retries 10
steps:
- uses: actions/checkout@v3
- uses: ariga/atlas-sync-action@v0
with:
dir: path/to/migrations
name: my_app
tag: ${{ github.sha }} # optional
dev-url: "sqlite://file?cache=shared&mode=memory"
cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}
with:
dir: 'migrations'
dev-url: 'mysql://root:pass@mysql:3306/dev'
cloud-token: ${{ secrets.ATLAS_CLOUD_TOKEN }}
```
## Configuration
Expand All @@ -51,12 +63,11 @@ The name of the migration directory in Atlas Cloud.

#### `tag` (optional)

The tag of the specific version of the migration directory.
When continuously syncing your directory, this input can be used to provide a unique identifier for each version. Defaults to the commit SHA.

#### `dev-url`

#### `dev-url` (optional)

The URL of the dev database to connect to.
The URL of the dev database to connect to. Atlas will use this database to check the validity of the SQL files before syncing them to Atlas Cloud.

#### `cloud-token`

Expand Down

0 comments on commit ba7f4bc

Please sign in to comment.