feat(ci): use custom image
All checks were successful
Deploy to SFTP Server / build (push) Successful in 29m30s

This commit is contained in:
max_richter 2024-04-06 16:43:38 +02:00
parent 3a8a3987b1
commit fe1c2cc218
2 changed files with 18 additions and 17 deletions

View File

@ -14,27 +14,11 @@ jobs:
env:
RUNNER_TOOL_CACHE: '/toolcache'
runs-on: ubuntu-latest
container: git.max-richter.dev/max/website:latest
steps:
- name: 🔄 Checkout code
uses: actions/checkout@v3
- name: 📦 Install Git LFS
run: |
apt update && apt install git-lfs zstd
- name: 📥 Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: 📦 Install PNPM
uses: pnpm/action-setup@v3
id: pnpm-install
with:
version: 8
node_version: 20
run_install: false
- name: 🔢 Calculate cache IDs
run: |
# Calculate cache IDs for Git LFS and PNPM

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM node:21-alpine
# Install necessary packages
RUN apk add --no-cache \
git \
git-lfs \
bash
# Install PNPM globally
RUN npm install -g pnpm
# Display installed versions
RUN node --version && \
npm --version && \
git --version && \
git-lfs version && \
pnpm --version