fix woodpecker icon

This commit is contained in:
dvirlabs 2025-06-03 03:26:12 +03:00
parent 7b4c3c83ff
commit 91dfa990a2
5 changed files with 49 additions and 1 deletions

View File

9
backend/Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
EXPOSE 8000

View File

@ -16,4 +16,9 @@
- name: Harbor
url: https://harbor.dvirlabs.com
icon: http://192.168.10.118:1111/icons/harbor.svg
description: Container registry
description: Container registry
- name: Woodpecker
url: https://woodpecker.dvirlabs.com
icon: http://192.168.10.118:1111/icons/woodpecker-ci.svg
description: CI/CD

View File

@ -0,0 +1,26 @@
when:
event:
- push
branch:
- master
steps:
- name: tag
image: alpine
commands:
- export TAG_DATE=$(date +%Y%m%d)
- export SHORT_SHA=${CI_COMMIT_SHA:0:7}
- echo "TAGS=latest,$TAG_DATE-$SHORT_SHA" > .tags.env
- name: docker
image: woodpeckerci/plugin-docker
settings:
repo: harbor.dvirlabs.com/my-apps/navix-frontend
tag_file: .tags.env
dockerfile: Dockerfile
context: .
registry: harbor.dvirlabs.com
username:
from_secret: harbor_user
password:
from_secret: harbor_password

8
frontend/Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM node:18-alpine as build
WORKDIR /app
COPY . .
RUN npm install && npm run build
FROM nginx:alpine
COPY --from=build /app/build /usr/share/nginx/html
EXPOSE 80