mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-04 13:35:36 +05:00
CI: add build CI for api-prox
This commit is contained in:
parent
d71ae186a2
commit
155146c5a0
4 changed files with 50 additions and 1 deletions
25
.github/workflows/docker-anix-api-prox.yml
vendored
Normal file
25
.github/workflows/docker-anix-api-prox.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
|||
name: Build and Publish 'anix-api-prox' to Docker Hub
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- V3
|
||||
paths:
|
||||
- "api-prox/*.ts"
|
||||
- "!api-prox/hooks/*"
|
||||
- "!api-prox/episode/*"
|
||||
- "api-prox/Dockerfile"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
- name: Build Image
|
||||
run: docker build . -t radiquum/anix-api-prox:dev
|
||||
- name: Publish Image
|
||||
run: |
|
||||
docker login -u radiquum -p ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
docker push radiquum/anix-api-prox:dev
|
5
api-prox/.dockerignore
Normal file
5
api-prox/.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
episode
|
||||
hooks
|
||||
node_modules
|
||||
README.md
|
||||
README.RU.md
|
18
api-prox/Dockerfile
Normal file
18
api-prox/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM node:23-alpine
|
||||
|
||||
LABEL org.opencontainers.image.source=https://github.com/radiquum/anix
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package.json package-lock.json ./
|
||||
RUN npm ci
|
||||
|
||||
COPY *.ts ./
|
||||
COPY tsconfig.json ./
|
||||
|
||||
RUN mkdir -p /app/hooks
|
||||
|
||||
EXPOSE 7001
|
||||
ENV PORT=7001
|
||||
ENV HOSTNAME="0.0.0.0"
|
||||
CMD ["npm", "run", "serve"]
|
|
@ -1,2 +1,3 @@
|
|||
node_modules
|
||||
README.md
|
||||
README.md
|
||||
README.RU.md
|
Loading…
Add table
Add a link
Reference in a new issue