Skip to content

Commit

Permalink
Merge pull request #513 from tktcorporation/0/chore/sentry-aws-sdk
Browse files Browse the repository at this point in the history
sentry の導入
  • Loading branch information
tktcorporation authored Dec 23, 2024
2 parents 208ab48 + 0dac22c commit 24070bc
Show file tree
Hide file tree
Showing 23 changed files with 1,408 additions and 790 deletions.
39 changes: 23 additions & 16 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// /~https://github.com/microsoft/vscode-dev-containers/tree/v0.165.1/containers/docker-existing-docker-compose
// If you want to run as a non-root user in the container, see .devcontainer/docker-compose.yml.
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: /~https://github.com/devcontainers/templates/tree/main/src/docker-in-docker
{
"name": "discord-tts-bot",

// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/base:bullseye",

"customizations": {
"vscode": {
"extensions": [
Expand All @@ -19,22 +21,27 @@
}
},
"features": {
"ghcr.io/devcontainers/features/docker-in-docker:2": {
"version": "latest",
"enableNonRootDocker": "true",
"moby": "true"
},
// github-cli
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/rust:1": {}
}
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
},

// Uncomment the next line if you want start specific services in your Docker Compose config.
// "runServices": [],
"runArgs": ["--env-file",".devcontainer/devcontainer.env"]

// Uncomment the next line if you want to keep your containers running after VS Code shuts down.
// "shutdownAction": "none",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// "postCreateCommand": "apt-get update && apt-get install -y git",
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "docker --version",

// Uncomment the next line to run commands after the container is created - for example installing curl.
// "onCreateCommand": "make install",
// Configure tool-specific properties.
// "customizations": {},

// Uncomment to connect as a non-root user if you've added one. See https://aka.ms/vscode-remote/containers/non-root.
// "remoteUser": "vscode"
}
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
3 changes: 2 additions & 1 deletion .github/workflows/deploy-to-fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
AWS_REGION=${{ secrets.AWS_REGION }} \
DISCORD_CMD_PREFIX=${{ secrets.DISCORD_CMD_PREFIX_MUSIC }}
DISCORD_CMD_PREFIX=${{ secrets.DISCORD_CMD_PREFIX_MUSIC }} \
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
# - run: flyctl deploy --remote-only
1 change: 1 addition & 0 deletions .github/workflows/deploy-tts-to-fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
AWS_REGION=${{ secrets.AWS_REGION }} \
DISCORD_CMD_PREFIX=${{ secrets.DISCORD_CMD_PREFIX_TTS_II }}
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
- run: flyctl deploy --remote-only -c fly-tts.toml
3 changes: 2 additions & 1 deletion .github/workflows/deploy-tts2-to-fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ jobs:
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \
AWS_REGION=${{ secrets.AWS_REGION }} \
DISCORD_CMD_PREFIX=${{ secrets.DISCORD_CMD_PREFIX }}
DISCORD_CMD_PREFIX=${{ secrets.DISCORD_CMD_PREFIX }} \
SENTRY_DSN=${{ secrets.SENTRY_DSN }}
- run: flyctl deploy --remote-only -c fly-tts-2.toml
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ target/
.env
tmp/

*.env

# Sound data
/sounds/*
!/sounds/shabeko_dayo.wav
Loading

0 comments on commit 24070bc

Please sign in to comment.