Skip to content

Commit

Permalink
[update]
Browse files Browse the repository at this point in the history
  • Loading branch information
boke0 committed Mar 3, 2021
1 parent e102735 commit 9381f94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,23 @@ jobs:
id: docker_meta
uses: crazy-max/ghaction-docker-meta@v1
with:
images: boke0/mitama
images: mitamaorg/mitama
tag-semver: |
{{version}}
{{major}}.{{minor}}
- name: Docker meta for mysql edition
id: docker_meta_mysql
uses: crazy-max/ghaction-docker-meta@v1
with:
images: boke0/mitama
images: mitamaorg/mitama
tag-semver: |
{{version}}-mysql
{{major}}.{{minor}}-mysql
- name: Docker meta for postgresql edition
id: docker_meta_postgresql
uses: crazy-max/ghaction-docker-meta@v1
with:
images: boke0/mitama
images: mitamaorg/mitama
tag-semver: |
{{version}}-postgresql
{{major}}.{{minor}}-postgresql
Expand All @@ -63,17 +63,17 @@ jobs:
uses: docker/build-push-action@v2
with:
push: true
tags: boke0/mitama:latest, ${{ steps.docker_meta.outputs.tags }}
tags: mitamaorg/mitama:latest, ${{ steps.docker_meta.outputs.tags }}
file: ./Dockerfile
- name: Build docker and publish for mysql edition
uses: docker/build-push-action@v2
with:
push: true
tags: boke0/mitama:latest-mysql, ${{ steps.docker_meta_mysql.outputs.tags }}
tags: mitamaorg/mitama:latest-mysql, ${{ steps.docker_meta_mysql.outputs.tags }}
file: ./Dockerfile.mysql
- name: Build docker and publish for postgresql edition
uses: docker/build-push-action@v2
with:
push: true
tags: boke0/mitama:latest-postgresql, ${{ steps.docker_meta_postgresql.outputs.tags }}
tags: mitamaorg/mitama:latest-postgresql, ${{ steps.docker_meta_postgresql.outputs.tags }}
file: ./Dockerfile.postgresql
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ DatabaseManager({

対応しているデータベースそれぞれに対応したDockerイメージが存在します。

- SQLite3: *boke0/mitama:latest*
- MySQL: *boke0/mitama:latest-mysql*
- PostgreSQL: *boke0/mitama:latest-postgresql*
- SQLite3: *mitamaorg/mitama:latest*
- MySQL: *mitamaorg/mitama:latest-mysql*
- PostgreSQL: *mitamaorg/mitama:latest-postgresql*

利用したいデータベース似合わせてイメージを選択してください。

Expand All @@ -122,7 +122,7 @@ pyproject.toml poetry.lock project.py
$ docker run -itd --name mitama_project \
-v "./:/project" \
-p 127.0.0.1:8080:80 \
boke0/mitama:latest
mitamaorg/mitama:latest
```

docker-composeを使うと、データベースなどの接続が楽にできます。
Expand All @@ -131,7 +131,7 @@ docker-composeを使うと、データベースなどの接続が楽にできま
version: "3"
services:
mitama:
image: boke0/mitama:latest-mysql
image: mitamaorg/mitama:latest-mysql
ports:
- 8080:80
volumes:
Expand Down

0 comments on commit 9381f94

Please sign in to comment.