MaJ pipeline

This commit is contained in:
The17thDoctor 2025-03-10 07:15:49 +01:00
parent 67f4f4dea6
commit 73c273cb8a
7 changed files with 40 additions and 44 deletions

5
.idea/.gitignore generated vendored
View File

@ -1,5 +0,0 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/

View File

@ -1,6 +0,0 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</component>

8
.idea/modules.xml generated
View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/portfolio.iml" filepath="$PROJECT_DIR$/.idea/portfolio.iml" />
</modules>
</component>
</project>

12
.idea/portfolio.iml generated
View File

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$">
<excludeFolder url="file://$MODULE_DIR$/.tmp" />
<excludeFolder url="file://$MODULE_DIR$/temp" />
<excludeFolder url="file://$MODULE_DIR$/tmp" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

6
.idea/vcs.xml generated
View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

27
dockerfile Normal file
View File

@ -0,0 +1,27 @@
FROM node:latest AS build
WORKDIR /build
# Copy source files
COPY src src
COPY public public
COPY package.json package.json
COPY package-lock.json package-lock.json
# Install dependencies & build
RUN npm install
RUN npm run build
# Final image
FROM node:latest AS final
WORKDIR /app
EXPOSE 3000
# Install serve for serving
RUN npm install -g serve
# Copy build
COPY --from=build /build/build/ /app/
ENTRYPOINT [ "serve", "-s", "/app" ]

View File

@ -2,11 +2,17 @@ kind: pipeline
type: exec
name: default
platform:
os: linux
arch: amd64
steps:
- name: greeting
commands:
- echo hello world
- name: Build
image: plugins/docker
settings:
dockerfile: dockerfile
repo: portfolio
tags:
- latest
trigger:
branch:
- master
event:
- push