feat(ci): use custom image
All checks were successful
Deploy to SFTP Server / build (push) Successful in 29m30s
All checks were successful
Deploy to SFTP Server / build (push) Successful in 29m30s
This commit is contained in:
parent
3a8a3987b1
commit
fe1c2cc218
18
.github/workflows/default.yaml
vendored
18
.github/workflows/default.yaml
vendored
@ -14,27 +14,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
RUNNER_TOOL_CACHE: '/toolcache'
|
RUNNER_TOOL_CACHE: '/toolcache'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: git.max-richter.dev/max/website:latest
|
||||||
steps:
|
steps:
|
||||||
- name: 🔄 Checkout code
|
- name: 🔄 Checkout code
|
||||||
uses: actions/checkout@v3
|
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
|
- name: 🔢 Calculate cache IDs
|
||||||
run: |
|
run: |
|
||||||
# Calculate cache IDs for Git LFS and PNPM
|
# Calculate cache IDs for Git LFS and PNPM
|
||||||
|
17
Dockerfile
Normal file
17
Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user