Now using more images powered by us 🚀🚀🚀
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				continuous-integration/drone/push Build was killed
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	continuous-integration/drone/push Build was killed
				
			This commit is contained in:
		
							
								
								
									
										12
									
								
								.drone.yml
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								.drone.yml
									
									
									
									
									
								
							@@ -27,12 +27,12 @@ clone:
 | 
				
			|||||||
  disable: true
 | 
					  disable: true
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: checkout pr
 | 
					  - name: checkout pr
 | 
				
			||||||
    image: alpine/git
 | 
					    image: registry.odit.services/hub/alpine/git
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - git clone $DRONE_REMOTE_URL .
 | 
					      - git clone $DRONE_REMOTE_URL .
 | 
				
			||||||
      - git checkout $DRONE_SOURCE_BRANCH
 | 
					      - git checkout $DRONE_SOURCE_BRANCH
 | 
				
			||||||
  - name: run tests
 | 
					  - name: run tests
 | 
				
			||||||
    image: node:latest
 | 
					    image: registry.odit.services/hub/library/node:latest
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - yarn
 | 
					      - yarn
 | 
				
			||||||
      - yarn test:ci
 | 
					      - yarn test:ci
 | 
				
			||||||
@@ -49,7 +49,7 @@ clone:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: clone
 | 
					  - name: clone
 | 
				
			||||||
    image: alpine/git
 | 
					    image: registry.odit.services/hub/alpine/git
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - git clone $DRONE_REMOTE_URL .
 | 
					      - git clone $DRONE_REMOTE_URL .
 | 
				
			||||||
      - git checkout dev
 | 
					      - git checkout dev
 | 
				
			||||||
@@ -68,7 +68,7 @@ steps:
 | 
				
			|||||||
      mtu: 1000
 | 
					      mtu: 1000
 | 
				
			||||||
  - name: run changelog export
 | 
					  - name: run changelog export
 | 
				
			||||||
    depends_on: ["clone"]
 | 
					    depends_on: ["clone"]
 | 
				
			||||||
    image: node:latest
 | 
					    image: registry.odit.services/hub/library/node:latest
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - npx auto-changelog --commit-limit false -p -u --hide-credit
 | 
					      - npx auto-changelog --commit-limit false -p -u --hide-credit
 | 
				
			||||||
  - name: push new changelog to repo
 | 
					  - name: push new changelog to repo
 | 
				
			||||||
@@ -84,7 +84,7 @@ steps:
 | 
				
			|||||||
        from_secret: git_ssh
 | 
					        from_secret: git_ssh
 | 
				
			||||||
  - name: run full license export
 | 
					  - name: run full license export
 | 
				
			||||||
    depends_on: ["clone"]
 | 
					    depends_on: ["clone"]
 | 
				
			||||||
    image: node:14.15.1-alpine3.12
 | 
					    image: registry.odit.services/hub/library/node:14.15.1-alpine3.12
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - yarn
 | 
					      - yarn
 | 
				
			||||||
      - yarn licenses:export
 | 
					      - yarn licenses:export
 | 
				
			||||||
@@ -116,7 +116,7 @@ clone:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
steps:
 | 
					steps:
 | 
				
			||||||
  - name: clone
 | 
					  - name: clone
 | 
				
			||||||
    image: alpine/git
 | 
					    image: registry.odit.services/hub/alpine/git
 | 
				
			||||||
    commands:
 | 
					    commands:
 | 
				
			||||||
      - git clone $DRONE_REMOTE_URL .
 | 
					      - git clone $DRONE_REMOTE_URL .
 | 
				
			||||||
      - git checkout dev
 | 
					      - git checkout dev
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,5 +1,5 @@
 | 
				
			|||||||
# Typescript Build
 | 
					# Typescript Build
 | 
				
			||||||
FROM registry.odit.services/mirror/node:14.15.1-alpine3.12
 | 
					FROM registry.odit.services/hub/library/node:14.15.1-alpine3.12
 | 
				
			||||||
WORKDIR /app
 | 
					WORKDIR /app
 | 
				
			||||||
COPY package.json ./
 | 
					COPY package.json ./
 | 
				
			||||||
RUN npm i -g pnpm
 | 
					RUN npm i -g pnpm
 | 
				
			||||||
@@ -8,7 +8,7 @@ COPY tsconfig.json ./
 | 
				
			|||||||
COPY src ./src
 | 
					COPY src ./src
 | 
				
			||||||
RUN pnpm run build
 | 
					RUN pnpm run build
 | 
				
			||||||
# final image
 | 
					# final image
 | 
				
			||||||
FROM registry.odit.services/mirror/node:14.15.1-alpine3.12
 | 
					FROM registry.odit.services/hub/library/node:14.15.1-alpine3.12
 | 
				
			||||||
COPY package.json ./
 | 
					COPY package.json ./
 | 
				
			||||||
RUN npm i -g pnpm
 | 
					RUN npm i -g pnpm
 | 
				
			||||||
RUN pnpm i --prod
 | 
					RUN pnpm i --prod
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user