Moved ci to pnpm w/ cache
This commit is contained in:
		
							
								
								
									
										17
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								.drone.yml
									
									
									
									
									
								
							| @@ -12,19 +12,30 @@ get: | ||||
|   path: odit-ci-bot | ||||
|   name: apikey | ||||
|  | ||||
| --- | ||||
| kind: secret | ||||
| name: npm_url | ||||
| get: | ||||
|   path: odit-npm-cache | ||||
|   name: url | ||||
|  | ||||
| --- | ||||
| kind: pipeline | ||||
| type: kubernetes | ||||
| name: build:tag | ||||
| steps: | ||||
|   - name: run build | ||||
|     image: node:15.11.0-alpine3.13 | ||||
|     image: registry.odit.services/hub/library/node:19.5.0-alpine3.16 | ||||
|     commands: | ||||
|       - apk add git zip -f | ||||
|       - yarn | ||||
|       - yarn build | ||||
|       - npm config set registry $NPM_REGISTRY_URL && npm i -g pnpm@8 | ||||
|       - pnpm i | ||||
|       - pnpm build | ||||
|       - mkdir out | ||||
|       - zip -r out/dist.zip dist | ||||
|     environment: | ||||
|       NPM_REGISTRY_URL: | ||||
|         from_secret: npm_url | ||||
|   - name: gitea add packages to build | ||||
|     image: plugins/gitea-release | ||||
|     settings: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user