Dockerfile: Fix the build, package gh exists in Ubuntu >=22 only
This commit is contained in:
		
							parent
							
								
									78feddce94
								
							
						
					
					
						commit
						51f171e506
					
				@ -37,7 +37,7 @@ RUN apt-get update \
 | 
			
		||||
  uuid-runtime \
 | 
			
		||||
  tzdata \
 | 
			
		||||
  jq \
 | 
			
		||||
  && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 18 ]; then apt-get install -y --no-install-recommends gh gpg skopeo; fi \
 | 
			
		||||
  && if [ "$(. /etc/lsb-release; echo "${DISTRIB_RELEASE}" | cut -d. -f1)" -ge 22 ]; then apt-get install -y --no-install-recommends gh gpg skopeo; fi \
 | 
			
		||||
  && apt-get remove --purge -y software-properties-common \
 | 
			
		||||
  && apt-get autoremove --purge -y \
 | 
			
		||||
  && rm -rf /var/lib/apt/lists/* \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user