fix(dashboard): correctly set current git commit hash during build
This commit is contained in:
		@@ -3,12 +3,14 @@ FROM alpine:latest as builder
 | 
			
		||||
RUN apk add nodejs-current yarn go git
 | 
			
		||||
 | 
			
		||||
COPY dashboard/ /build
 | 
			
		||||
COPY .git/ /build/.git
 | 
			
		||||
 | 
			
		||||
WORKDIR /build
 | 
			
		||||
 | 
			
		||||
RUN yarn install --frozen-lockfile
 | 
			
		||||
RUN yarn build
 | 
			
		||||
 | 
			
		||||
RUN go build -ldflags "-X dashboard/main.version=$(git rev-parse HEAD)"
 | 
			
		||||
RUN sh -c 'go build -ldflags "-X main.version=$(git rev-parse HEAD)"'
 | 
			
		||||
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user