From b7638d2b78ff5947fb1d7ffca8e10fe385787f8d Mon Sep 17 00:00:00 2001 From: imnyang Date: Fri, 6 Mar 2026 23:36:48 +0900 Subject: [PATCH] Update GitHub Actions workflow and Dockerfile for webhook service configuration --- .github/workflows/main.yml | 6 +++--- Dockerfile | 2 -- compose.yml | 17 +++++++++++++++++ 3 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 compose.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f786642..7c69408 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ on: - main workflow_dispatch: -name: Web Build +name: Docker Build jobs: build: runs-on: ubuntu-latest @@ -31,5 +31,5 @@ jobs: cache-from: type=gha cache-to: type=gha,mode=max tags: | - ghcr.io/imnyang/today.sunrin:latest - ghcr.io/imnyang/today.sunrin:${{ github.run_id }} \ No newline at end of file + ghcr.io/imnyang/today.webhook:latest + ghcr.io/imnyang/today.webhook:${{ github.run_id }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 0b58fb8..f240bf7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,6 @@ LABEL maintainer="@imnya" # Set the working directory COPY app /code/app -COPY .env /code/app/.env RUN chmod +x /code/app/run.sh @@ -25,7 +24,6 @@ RUN mkdir -p /code/app # Copy the built files from the build stage COPY --from=build /code/app/run /code/app/run -COPY --from=build /code/app/.env /code/app/.env COPY --from=build /code/app/run.sh /code/app/run.sh RUN mkdir -p /code/app/temp diff --git a/compose.yml b/compose.yml new file mode 100644 index 0000000..49634da --- /dev/null +++ b/compose.yml @@ -0,0 +1,17 @@ +services: + app: + image: ghcr.io/imnynag/today.webhook:latest + restart: unless-stopped + env_file: + - .env + volumes: + - ./logs:/code/app/temp/logs + networks: + hikari: + +networks: + hikari: + ipam: + driver: default + config: + - subnet: 172.30.0.0/16 \ No newline at end of file