fix woodpecker icon
This commit is contained in:
parent
7b4c3c83ff
commit
91dfa990a2
0
backend/.woodpecker.yaml.disable
Normal file
0
backend/.woodpecker.yaml.disable
Normal file
9
backend/Dockerfile
Normal file
9
backend/Dockerfile
Normal 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
|
||||
@ -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
|
||||
26
frontend/.woodpecker.yaml.disable
Normal file
26
frontend/.woodpecker.yaml.disable
Normal 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
8
frontend/Dockerfile
Normal 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
|
||||
Loading…
x
Reference in New Issue
Block a user