mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Update docs (#175)
This commit is contained in:
parent
c2b14bb7e0
commit
656dc0253a
2 changed files with 6 additions and 7 deletions
|
|
@ -1,6 +1,6 @@
|
|||
# Dbmate
|
||||
|
||||
[](https://travis-ci.org/amacneil/dbmate)
|
||||
[](https://github.com/amacneil/dbmate/actions?query=branch%3Amaster+event%3Apush+workflow%3ACI)
|
||||
[](https://goreportcard.com/report/github.com/amacneil/dbmate)
|
||||
[](https://github.com/amacneil/dbmate/releases)
|
||||
|
||||
|
|
@ -46,13 +46,13 @@ $ sudo chmod +x /usr/local/bin/dbmate
|
|||
You can run dbmate using the official docker image (remember to set `--network=host` or see [this comment](https://github.com/amacneil/dbmate/issues/128#issuecomment-615924611) for more tips on using dbmate with docker networking):
|
||||
|
||||
```sh
|
||||
$ docker run --rm --network=host -it amacneil/dbmate --help
|
||||
$ docker run --rm -it --network=host amacneil/dbmate --help
|
||||
```
|
||||
|
||||
If you wish to create or apply migrations, you will need to use Docker's [bind mount](https://docs.docker.com/storage/bind-mounts/) feature to make your local working directory available inside the dbmate container:
|
||||
If you wish to create or apply migrations, you will need to use Docker's [bind mount](https://docs.docker.com/storage/bind-mounts/) feature to make your local working directory (`pwd`) available inside the dbmate container:
|
||||
|
||||
```sh
|
||||
$ docker run --rm -it -v "$(pwd)"/db:/db amacneil/dbmate new create_users_table
|
||||
$ docker run --rm -it --network=host -v "$(pwd)/db:/db" amacneil/dbmate new create_users_table
|
||||
```
|
||||
|
||||
**Heroku**
|
||||
|
|
|
|||
|
|
@ -3,6 +3,5 @@
|
|||
The following steps should be followed to publish a new version of dbmate (requires write access to this repository).
|
||||
|
||||
1. Update [version.go](/pkg/dbmate/version.go) with new version number ([example PR](https://github.com/amacneil/dbmate/pull/146/files))
|
||||
2. Create new release on GitHub project [releases page](https://github.com/amacneil/dbmate/releases)
|
||||
3. Travis CI will automatically publish release binaries to GitHub
|
||||
4. GitHub Actions will automatically create PR to update Homebrew package
|
||||
2. Create new release on [releases page](https://github.com/amacneil/dbmate/releases) and write release notes
|
||||
3. GitHub Actions will automatically publish release binaries and submit Homebrew PR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue