maj cv link

main
greglebreton 2 years ago
parent 97b9311b77
commit f9d46bd726
  1. 50
      .drone.yml
  2. 23
      Dockerfile
  3. 4
      src/custom-comands.js
  4. 0
      static/Gregory-Lebreton-CV.pdf

@ -11,33 +11,33 @@ trigger:
steps:
######## DOCKER BUILD AND PUSH TO REGISTRY ########
# - name: build docker image and push to registry
# image: plugins/docker
# volumes:
# - name: appsource
# path: "/src"
# - name: dockersock
# path: "/var/run/docker.sock"
# settings:
# debug: true
# username:
# from_secret: REGISTRY_USER
# password:
# from_secret: REGISTRY_PASSWORD
# # registry: "dockerregistry.legaragenumerique.fr"
# # insecure: true
# # privileged: true
# repo: "greglebreton/terminal-cv"
# # tags: ${DRONE_TAG}
# dockerfile: ./Dockerfile
####### DOCKER BUILD AND PUSH TO REGISTRY ########
- name: build docker image and push to registry
image: plugins/docker
volumes:
- name: appsource
path: "/src"
- name: dockersock
path: "/var/run/docker.sock"
settings:
debug: true
username:
from_secret: REGISTRY_USER
password:
from_secret: REGISTRY_PASSWORD
# registry: "dockerregistry.legaragenumerique.fr"
# insecure: true
# privileged: true
repo: "greglebreton/terminal-cv"
dockerfile: ./Dockerfile
######## NPM BROKEN ########
- name: install npm dependancies
image: node
commands:
- npm install
- npm test
# - name: install npm dependancies
# image: node
# commands:
# - npm install
# - npm test
######## TELEGRAM NOTIFICATION ########

@ -1,13 +1,14 @@
FROM debian:bullseye-slim as builder
WORKDIR /data
COPY . .
RUN apt update && apt install -y npm
RUN npm install -i package.json \
&& npm run build
RUN apt update
# WORKDIR /data
# COPY . .
# RUN apt install -y npm
# RUN npm install -i package.json \
# && npm run build
FROM alpine
RUN apk update \
&& apk add lighttpd \
&& rm -rf /var/cache/apk/*
COPY --from=builder /data/dist /var/www/localhost/htdocs
CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"]
# FROM alpine
# RUN apk update \
# && apk add lighttpd \
# && rm -rf /var/cache/apk/*
# COPY --from=builder /data/dist /var/www/localhost/htdocs
# CMD ["lighttpd","-D","-f","/etc/lighttpd/lighttpd.conf"]

@ -52,8 +52,8 @@ export function setDarkMode(value) {
export function getCV() {
const a = document.createElement("a");
a.href = "resources/CV - Greg Lebreton.pdf";
a.setAttribute("download", "Grégory-Lebreton- CV.pdf");
a.href = "resources/CV - Gregory-Lebreton-CV.pdf";
a.setAttribute("download", "Gregory-Lebreton-CV.pdf");
a.click();
}

Loading…
Cancel
Save