Skip to content

Commit

Permalink
Merge pull request #373 from tktcorporation/fix/0
Browse files Browse the repository at this point in the history
🧑‍💻 update docker image and fix path structure
  • Loading branch information
tktcorporation committed Sep 27, 2023
2 parents 5b8e3d5 + 03cdca1 commit 5843a48
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "daily"
interval: "weekly"
assignees:
- "tktcorporation"
commit-message:
prefix: ":arrow_up:"

- package-ecosystem: "docker"
directory: "/"
directory: "/docker/"
schedule:
interval: "daily"
interval: "weekly"
assignees:
- "tktcorporation"
commit-message:
Expand All @@ -26,7 +26,7 @@ updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
interval: "weekly"
assignees:
- "tktcorporation"
commit-message:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/heroku-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: Build and push
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
run: heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} app
run: cd ./docker && heroku container:push -a ${{ secrets.HEROKU_APP_NAME }} app --context-path ../

- name: Release
env:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "discord-tts-bot"
version = "1.3.0"
version = "1.3.1"
authors = ["tktcorporation"]
edition = "2021"
license = "MIT"
Expand Down
6 changes: 5 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ services:
app:
build:
context: .
dockerfile: ./Dockerfile
dockerfile: ./docker/Dockerfile
target: dev-env
working_dir: /workspace
# sleep
command: bash -c "while true; do sleep 1; done"
environment:
- USER=$USER
- DISCORD_TOKEN=$DISCORD_TOKEN
Expand All @@ -18,6 +20,8 @@ services:
volumes:
- .:/workspace:cached
- /var/run/docker.sock:/var/run/docker.sock:rw
# rust
- cargo-cache:/usr/local/cargo/registry:cached
tty: true
heroku:
# run `apk add docker` before running heroku commands
Expand Down
File renamed without changes.
6 changes: 4 additions & 2 deletions docker/Dockerfile.music
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM rust:1.64-slim-bullseye AS build-env
FROM rust:1.72.1-slim-bullseye AS dev-env

RUN apt-get update && \
apt-get install -y \
Expand All @@ -23,6 +23,8 @@ RUN curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o

ENV LC_ALL=C.UTF-8

FROM dev-env AS build-env

COPY Cargo.lock Cargo.lock
COPY Cargo.toml Cargo.toml

Expand All @@ -37,7 +39,7 @@ RUN cargo build --release --no-default-features --features "music"

CMD [ "/bin/sh", "-c", "cargo run" ]

FROM debian:bullseye-20220418-slim
FROM debian:bullseye-20230919-slim

RUN apt-get update && \
apt-get install -y \
Expand Down

0 comments on commit 5843a48

Please sign in to comment.