Skip to content

Commit

Permalink
Merge pull request #36 from approvers/fix-release
Browse files Browse the repository at this point in the history
fix(release): デプロイ用と開発用のcomposeファイルに分割
  • Loading branch information
raiga0310 authored Sep 12, 2023
2 parents fa2a14b + c95ba54 commit 3b196ec
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release upload ${{ inputs.tag-name }} compose.yml --clobber
gh release upload ${{ inputs.tag-name }} ./deployment/compose.yml --clobber
4 changes: 3 additions & 1 deletion compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
services:
app:
image: ghcr.io/approvers/yomiage-mon:latest
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
init: true
Expand Down
18 changes: 18 additions & 0 deletions deployment/compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
services:
app:
image: ghcr.io/approvers/yomiage-mon:latest
env_file:
- .env
init: true
depends_on:
- voicevox
restart: unless-stopped
secrets:
- discord_token
voicevox:
image: voicevox/voicevox_engine:cpu-ubuntu20.04-0.14.4
restart: unless-stopped

secrets:
discord_token:
file: .secret

0 comments on commit 3b196ec

Please sign in to comment.