fix: upgrade tonistiigi/xx to 1.6.1
The version of xx is out-of-date. Upgrading to version 1.6.1 to keep up with changes to the xx project. Signed-off-by: Raymond Etornam <retornam@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									66893eb9e7
								
							
						
					
					
						commit
						bca82e364d
					
				|  | @ -2,7 +2,7 @@ FROM --platform=$BUILDPLATFORM golang:1.19 as build-env | ||||||
| 
 | 
 | ||||||
| # xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM | # xx wraps go to automatically configure $GOOS, $GOARCH, and $GOARM | ||||||
| # based on TARGETPLATFORM provided by Docker. | # based on TARGETPLATFORM provided by Docker. | ||||||
| COPY --from=tonistiigi/xx:golang-1.0.0 / / | COPY --from=tonistiigi/xx:1.6.1 / / | ||||||
| 
 | 
 | ||||||
| ARG APP_FOLDER | ARG APP_FOLDER | ||||||
| 
 | 
 | ||||||
|  | @ -11,7 +11,7 @@ WORKDIR ${APP_FOLDER} | ||||||
| 
 | 
 | ||||||
| # Compile independent executable using go wrapper from xx:golang | # Compile independent executable using go wrapper from xx:golang | ||||||
| ARG TARGETPLATFORM | ARG TARGETPLATFORM | ||||||
| RUN CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner | RUN CGO_ENABLED=0 xx-go build -a -ldflags '-extldflags "-static"' -o /bin/main ./cmd/nfs-subdir-external-provisioner | ||||||
| 
 | 
 | ||||||
| FROM --platform=$TARGETPLATFORM alpine:3.18 | FROM --platform=$TARGETPLATFORM alpine:3.18 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue