perf(jenkins): disable astro telemetry and add pnpm cache
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
FROM node:24-alpine AS build
|
FROM node:24-alpine AS build
|
||||||
RUN corepack enable && corepack prepare pnpm@latest --activate
|
RUN corepack enable && corepack prepare pnpm@latest --activate
|
||||||
|
|
||||||
|
ENV ASTRO_TELEMETRY_DISABLED=1
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy depedencies
|
# Copy depedencies
|
||||||
|
|||||||
2
Jenkinsfile
vendored
2
Jenkinsfile
vendored
@@ -5,6 +5,8 @@ pipeline {
|
|||||||
CONTAINER_NAME = "portfolio"
|
CONTAINER_NAME = "portfolio"
|
||||||
DOCKER_NETWORK = "reverse-proxy"
|
DOCKER_NETWORK = "reverse-proxy"
|
||||||
DOCKER_HOST = "unix:///var/run/docker.sock"
|
DOCKER_HOST = "unix:///var/run/docker.sock"
|
||||||
|
// Optimization
|
||||||
|
PNPM_CACHE = "/var/jenkins_home/pnpm-cache"
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Checkout') {
|
stage('Checkout') {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ const today = new Date();
|
|||||||
---
|
---
|
||||||
|
|
||||||
<footer>
|
<footer>
|
||||||
© {today.getFullYear()} Your name here. All rights reserved.
|
© {today.getFullYear()} Lucas Royer. All rights reserved.
|
||||||
<div class="social-links">
|
<div class="social-links">
|
||||||
<a href="https://m.webtoo.ls/@astro" target="_blank">
|
<a href="https://m.webtoo.ls/@astro" target="_blank">
|
||||||
<span class="sr-only">Follow Astro on Mastodon</span>
|
<span class="sr-only">Follow Astro on Mastodon</span>
|
||||||
|
|||||||
Reference in New Issue
Block a user