Added CI/Dockerfile
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Phil 2024-10-21 18:44:28 +02:00
parent ecea9bd13b
commit 459a45243a
Signed by: Phil
GPG key ID: 350C8B7C4EF5DED4
3 changed files with 30 additions and 0 deletions

19
.woodpecker.yml Normal file
View file

@ -0,0 +1,19 @@
steps:
- name: Publish
image: woodpeckerci/plugin-docker-buildx:3
settings:
platforms: linux/amd64
repo: git.hackmi.ch/hackmi.ch/start
registry: git.hackmi.ch
tags: latest
username:
from_secret: reg-user
password:
from_secret: reg-pass
services:
docker:
image: docker:24-dind
commands:
- dockerd --tls=false --host=tcp://0.0.0.0:2376
privileged: true

11
Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM node:alpine as builder
WORKDIR /src
RUN npm i .
RUN npm run build
FROM nginx:stable-alpine-slim
RUN rm -rf /usr/share/nginx/html
RUN mkdir -p /usr/share/nginx/html
COPY --from=builder /src/dist/* /usr/share/nginx/html/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 15 KiB