Skip to content

Commit

Permalink
chore(*): disable cgo (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Oct 4, 2018
1 parent 155b036 commit fbc195c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ tasks:
FROM golang:1.11.1 AS {{ .Docker.CurrentStage }}
WORKDIR /src/{{ index .Variables "gitRepository" }}
COPY ./ ./
ENV CGO_ENABLED 0
{{ if and .Git.IsClean .Git.IsTag }}
RUN go build -o {{ index .Variables "binaryPath" }} -ldflags "-X \"{{ index .Variables "gitRepository" }}/cmd.Tag={{ trimAll "v" .Git.Tag }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.SHA={{ .Git.SHA }}\" -X \"{{ index .Variables "gitRepository" }}/cmd.Built={{ .Built }}\""
{{ else if .Git.IsClean }}
Expand Down

0 comments on commit fbc195c

Please sign in to comment.