Skip to content

Commit

Permalink
Remove 'version' from path of variables set at build time (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrynhard authored Jun 5, 2017
1 parent aa8ced7 commit 925dabf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ templates:
FROM golang:1.8.3 as build
WORKDIR /go/src/github.com/autonomy/conform
COPY ./ ./
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /conform -a -ldflags "-X \"github.com/autonomy/conform/conform/version.Tag={{ trimAll "v" .GitInfo.Tag }}\" -X \"github.com/autonomy/conform/conform/version.SHA={{ .GitInfo.SHA }}\" -X \"github.com/autonomy/conform/conform/version.Built={{ .Built }}\""
RUN GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -o /conform -a -ldflags "-X \"github.com/autonomy/conform/conform.Tag={{ trimAll "v" .GitInfo.Tag }}\" -X \"github.com/autonomy/conform/conform.SHA={{ .GitInfo.SHA }}\" -X \"github.com/autonomy/conform/conform.Built={{ .Built }}\""
test: |
FROM golang:1.8.3 as test
WORKDIR /go/src/github.com/autonomy/conform
Expand Down

0 comments on commit 925dabf

Please sign in to comment.