From f9d46bd726f3f1883c1908fc9749b6e4cd6a57df Mon Sep 17 00:00:00 2001 From: greglebreton Date: Tue, 27 Dec 2022 15:25:25 +0100 Subject: [PATCH] maj cv link --- .drone.yml | 50 +++++++++--------- Dockerfile | 23 ++++---- src/custom-comands.js | 4 +- ...breton- CV.pdf => Gregory-Lebreton-CV.pdf} | Bin 4 files changed, 39 insertions(+), 38 deletions(-) rename static/{Grégory-Lebreton- CV.pdf => Gregory-Lebreton-CV.pdf} (100%) diff --git a/.drone.yml b/.drone.yml index dddb2d2..58a4eb8 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 ######## diff --git a/Dockerfile b/Dockerfile index 66c2533..ca07793 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file +# 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"] \ No newline at end of file diff --git a/src/custom-comands.js b/src/custom-comands.js index d4e4762..f09b0d6 100644 --- a/src/custom-comands.js +++ b/src/custom-comands.js @@ -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(); } diff --git a/static/Grégory-Lebreton- CV.pdf b/static/Gregory-Lebreton-CV.pdf similarity index 100% rename from static/Grégory-Lebreton- CV.pdf rename to static/Gregory-Lebreton-CV.pdf