This commit is contained in:
parent
97b9311b77
commit
f9d46bd726
50
.drone.yml
50
.drone.yml
@ -11,33 +11,33 @@ trigger:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
######## DOCKER BUILD AND PUSH TO REGISTRY ########
|
####### DOCKER BUILD AND PUSH TO REGISTRY ########
|
||||||
# - name: build docker image and push to registry
|
- name: build docker image and push to registry
|
||||||
# image: plugins/docker
|
image: plugins/docker
|
||||||
# volumes:
|
volumes:
|
||||||
# - name: appsource
|
- name: appsource
|
||||||
# path: "/src"
|
path: "/src"
|
||||||
# - name: dockersock
|
- name: dockersock
|
||||||
# path: "/var/run/docker.sock"
|
path: "/var/run/docker.sock"
|
||||||
# settings:
|
settings:
|
||||||
# debug: true
|
debug: true
|
||||||
# username:
|
username:
|
||||||
# from_secret: REGISTRY_USER
|
from_secret: REGISTRY_USER
|
||||||
# password:
|
password:
|
||||||
# from_secret: REGISTRY_PASSWORD
|
from_secret: REGISTRY_PASSWORD
|
||||||
# # registry: "dockerregistry.legaragenumerique.fr"
|
# registry: "dockerregistry.legaragenumerique.fr"
|
||||||
# # insecure: true
|
# insecure: true
|
||||||
# # privileged: true
|
# privileged: true
|
||||||
# repo: "greglebreton/terminal-cv"
|
repo: "greglebreton/terminal-cv"
|
||||||
# # tags: ${DRONE_TAG}
|
dockerfile: ./Dockerfile
|
||||||
# dockerfile: ./Dockerfile
|
|
||||||
|
|
||||||
|
######## NPM BROKEN ########
|
||||||
|
|
||||||
- name: install npm dependancies
|
# - name: install npm dependancies
|
||||||
image: node
|
# image: node
|
||||||
commands:
|
# commands:
|
||||||
- npm install
|
# - npm install
|
||||||
- npm test
|
# - npm test
|
||||||
|
|
||||||
######## TELEGRAM NOTIFICATION ########
|
######## TELEGRAM NOTIFICATION ########
|
||||||
|
|
||||||
|
23
Dockerfile
23
Dockerfile
@ -1,13 +1,14 @@
|
|||||||
FROM debian:bullseye-slim as builder
|
FROM debian:bullseye-slim as builder
|
||||||
WORKDIR /data
|
RUN apt update
|
||||||
COPY . .
|
# WORKDIR /data
|
||||||
RUN apt update && apt install -y npm
|
# COPY . .
|
||||||
RUN npm install -i package.json \
|
# RUN apt install -y npm
|
||||||
&& npm run build
|
# RUN npm install -i package.json \
|
||||||
|
# && npm run build
|
||||||
|
|
||||||
FROM alpine
|
# FROM alpine
|
||||||
RUN apk update \
|
# RUN apk update \
|
||||||
&& apk add lighttpd \
|
# && apk add lighttpd \
|
||||||
&& rm -rf /var/cache/apk/*
|
# && rm -rf /var/cache/apk/*
|
||||||
COPY --from=builder /data/dist /var/www/localhost/htdocs
|
# COPY --from=builder /data/dist /var/www/localhost/htdocs
|
||||||
CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"]
|
# CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"]
|
@ -52,8 +52,8 @@ export function setDarkMode(value) {
|
|||||||
|
|
||||||
export function getCV() {
|
export function getCV() {
|
||||||
const a = document.createElement("a");
|
const a = document.createElement("a");
|
||||||
a.href = "resources/CV - Greg Lebreton.pdf";
|
a.href = "resources/CV - Gregory-Lebreton-CV.pdf";
|
||||||
a.setAttribute("download", "Grégory-Lebreton- CV.pdf");
|
a.setAttribute("download", "Gregory-Lebreton-CV.pdf");
|
||||||
a.click();
|
a.click();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user