mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 03:16:10 -06:00 
			
		
		
		
	Chore: display docker tag in UI for ci test builds (#7083)
This commit is contained in:
		
							
								
								
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -13,6 +13,16 @@ WORKDIR /src/src-ui
 | 
			
		||||
RUN set -eux \
 | 
			
		||||
  && npm update npm -g \
 | 
			
		||||
  && npm ci
 | 
			
		||||
 | 
			
		||||
ARG PNGX_TAG_VERSION=
 | 
			
		||||
# Add the tag to the environment file if its a tagged dev build
 | 
			
		||||
RUN set -eux && \
 | 
			
		||||
case "${PNGX_TAG_VERSION}" in \
 | 
			
		||||
  dev|fix*|feature*) \
 | 
			
		||||
    sed -i -E "s/version: '([0-9\.]+)'/version: '\1 #${PNGX_TAG_VERSION}'/g" /src/src-ui/src/environments/environment.prod.ts \
 | 
			
		||||
    ;; \
 | 
			
		||||
esac
 | 
			
		||||
 | 
			
		||||
RUN set -eux \
 | 
			
		||||
  && ./node_modules/.bin/ng build --configuration production
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user