mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	pin corepack version
disallow corepack from fetching latest manager version; instead use specified version in package.json
This commit is contained in:
		
							parent
							
								
									0a4e1614ea
								
							
						
					
					
						commit
						63f9dbd5f1
					
				
					 2 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -10,12 +10,13 @@ testCommit:
 | 
			
		|||
    - redis
 | 
			
		||||
  variables:
 | 
			
		||||
    POSTGRES_PASSWORD: ci
 | 
			
		||||
    COREPACK_DEFAULT_TO_LATEST: 0
 | 
			
		||||
  script:
 | 
			
		||||
    - apt-get update && apt-get install -y git wget curl build-essential python3 ffmpeg
 | 
			
		||||
    - cp .config/ci.yml .config/default.yml
 | 
			
		||||
    - cp .config/ci.yml .config/test.yml
 | 
			
		||||
    - corepack enable
 | 
			
		||||
    - corepack prepare pnpm@latest --activate
 | 
			
		||||
    - corepack install
 | 
			
		||||
    - git submodule update --init
 | 
			
		||||
    - pnpm install --frozen-lockfile
 | 
			
		||||
    - pnpm run build
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -7,6 +7,7 @@ FROM node:${NODE_VERSION} as build
 | 
			
		|||
RUN apk add git linux-headers build-base
 | 
			
		||||
 | 
			
		||||
ENV PYTHONUNBUFFERED=1
 | 
			
		||||
ENV COREPACK_DEFAULT_TO_LATEST=0
 | 
			
		||||
RUN apk add --update python3 && ln -sf python3 /usr/bin/python
 | 
			
		||||
RUN apk add py3-pip py3-setuptools
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -35,6 +36,7 @@ FROM node:${NODE_VERSION}
 | 
			
		|||
 | 
			
		||||
ARG UID="991"
 | 
			
		||||
ARG GID="991"
 | 
			
		||||
ENV COREPACK_DEFAULT_TO_LATEST=0
 | 
			
		||||
 | 
			
		||||
RUN apk add ffmpeg tini jemalloc \
 | 
			
		||||
	&& corepack enable \
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue