Update GitHub Actions workflow and Dockerfile for webhook service configuration

This commit is contained in:
암냥 2026-03-06 23:36:48 +09:00
commit b7638d2b78
No known key found for this signature in database
3 changed files with 20 additions and 5 deletions

View file

@ -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 }}
ghcr.io/imnyang/today.webhook:latest
ghcr.io/imnyang/today.webhook:${{ github.run_id }}

View file

@ -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

17
compose.yml Normal file
View file

@ -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