mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-27 09:31:14 +02:00
chore(initramfs): disable cgo for osctl (#113)
This commit is contained in:
parent
7b12d6f042
commit
a3ecf5baff
@ -62,17 +62,17 @@ tasks:
|
||||
template: |
|
||||
WORKDIR $GOPATH/src/github.com/autonomy/dianemo/initramfs/cmd/{{ .Docker.CurrentStage }}
|
||||
{{ if and .Git.IsClean .Git.IsTag }}
|
||||
RUN GOOS=linux GOARCH=amd64 go build -a \
|
||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a \
|
||||
-ldflags "-s -w -X {{ index .Variables "versionPath" }}.Name=Client -X {{ index .Variables "versionPath" }}.Tag={{ .Git.Tag }} -X {{ index .Variables "versionPath" }}.SHA={{ .Git.SHA }} -X \"{{ index .Variables "versionPath" }}.Built={{ .Built }}\"" \
|
||||
-o /{{ .Docker.CurrentStage }}-linux-amd64
|
||||
RUN GOOS=darwin GOARCH=amd64 go build -a \
|
||||
RUN GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -a \
|
||||
-ldflags "-s -w -X {{ index .Variables "versionPath" }}.Name=Client -X {{ index .Variables "versionPath" }}.Tag={{ .Git.Tag }} -X {{ index .Variables "versionPath" }}.SHA={{ .Git.SHA }} -X \"{{ index .Variables "versionPath" }}.Built={{ .Built }}\"" \
|
||||
-o /{{ .Docker.CurrentStage }}-darwin-amd64
|
||||
{{ else }}
|
||||
RUN GOOS=linux GOARCH=amd64 go build -a \
|
||||
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a \
|
||||
-ldflags "-s -w -X {{ index .Variables "versionPath" }}.Name=Client -X {{ index .Variables "versionPath" }}.Tag=none -X {{ index .Variables "versionPath" }}.SHA={{ .Git.SHA }}" \
|
||||
-o /{{ .Docker.CurrentStage }}-linux-amd64
|
||||
RUN GOOS=darwin GOARCH=amd64 go build -a \
|
||||
RUN GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -a \
|
||||
-ldflags "-s -w -X {{ index .Variables "versionPath" }}.Name=Client -X {{ index .Variables "versionPath" }}.Tag=none -X {{ index .Variables "versionPath" }}.SHA={{ .Git.SHA }}" \
|
||||
-o /{{ .Docker.CurrentStage }}-darwin-amd64
|
||||
{{ end }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user