Update GitHub Actions workflow and Dockerfile for webhook service configuration
This commit is contained in:
parent
40116ec84c
commit
b7638d2b78
3 changed files with 20 additions and 5 deletions
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
|
|
@ -4,7 +4,7 @@ on:
|
||||||
- main
|
- main
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
name: Web Build
|
name: Docker Build
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -31,5 +31,5 @@ jobs:
|
||||||
cache-from: type=gha
|
cache-from: type=gha
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/imnyang/today.sunrin:latest
|
ghcr.io/imnyang/today.webhook:latest
|
||||||
ghcr.io/imnyang/today.sunrin:${{ github.run_id }}
|
ghcr.io/imnyang/today.webhook:${{ github.run_id }}
|
||||||
|
|
@ -3,7 +3,6 @@ LABEL maintainer="@imnya"
|
||||||
|
|
||||||
# Set the working directory
|
# Set the working directory
|
||||||
COPY app /code/app
|
COPY app /code/app
|
||||||
COPY .env /code/app/.env
|
|
||||||
|
|
||||||
RUN chmod +x /code/app/run.sh
|
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 the built files from the build stage
|
||||||
COPY --from=build /code/app/run /code/app/run
|
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
|
COPY --from=build /code/app/run.sh /code/app/run.sh
|
||||||
|
|
||||||
RUN mkdir -p /code/app/temp
|
RUN mkdir -p /code/app/temp
|
||||||
|
|
|
||||||
17
compose.yml
Normal file
17
compose.yml
Normal 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
|
||||||
Loading…
Add table
Add a link
Reference in a new issue