CI WIP
Some checks failed
ci/woodpecker/manual/woodpecker Pipeline failed

This commit is contained in:
Przemek Grondek 2023-09-14 21:41:32 +02:00
parent d5114a80f3
commit dcb353bacb
3 changed files with 27 additions and 3 deletions

View File

@ -1,5 +1,12 @@
pipeline:
build:
steps:
build-static:
image: "node:20"
commands:
- npm run build
- npm run build
build-docker:
image: "docker:24.0.6-dind"
commands:
# - docker build -t docker.grondek.pl/react-homepage:0.1 .
- docker buildx build --platform linux/arm64,linux/amd64 --push -t docker.grondek.pl/react-homepage:0.1 .
# when:
# - branch: [ master, main ]

8
Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM nginx:1.24.0-alpine
ENV NODE_ENV production
RUN rm -rf /usr/share/nginx/html/*
COPY out /usr/share/nginx/html/
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf

9
docker/nginx.conf Normal file
View File

@ -0,0 +1,9 @@
server {
listen 80;
location / {
root /usr/share/nginx/html/;
include /etc/nginx/mime.types;
try_files $uri $uri/ /index.html;
}
}