From fe1c2cc218f262ebf494c7ff84489ea7d7c1ed41 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Sat, 6 Apr 2024 16:43:38 +0200 Subject: [PATCH] feat(ci): use custom image --- .github/workflows/default.yaml | 18 +----------------- Dockerfile | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 17 deletions(-) create mode 100644 Dockerfile diff --git a/.github/workflows/default.yaml b/.github/workflows/default.yaml index 3c9cce3..ff1fd81 100644 --- a/.github/workflows/default.yaml +++ b/.github/workflows/default.yaml @@ -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 diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ca039bf --- /dev/null +++ b/Dockerfile @@ -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