Skip to content

Commit

Permalink
Build: Remove release drafter
Browse files Browse the repository at this point in the history
Fix: Code style

Fix: Code style

Fix: Code style

Fix: Code style
  • Loading branch information
qraimbault committed Feb 20, 2020
1 parent 347436f commit c6eec81
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
17 changes: 0 additions & 17 deletions .github/release-drafter.yml

This file was deleted.

2 changes: 1 addition & 1 deletion build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ WORKDIR /go/src/cerberus
COPY --from=frontbuilder /app /go/src/cerberus
RUN go get -u github.com/gobuffalo/packr/v2/packr2
RUN packr2
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o bin/cerberus ./main.go
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X github.com/forsam-education/cerberus/utils.VersionHash=`git rev-parse HEAD` -X github.com/forsam-education/cerberus/utils.BuildTime=`date +%Y-%m-%dT%T%z`" -o bin/cerberus ./main.go

FROM scratch

Expand Down
5 changes: 5 additions & 0 deletions utils/version.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
package utils

var (
// MajorVersion is the hardcoded major version of Cerberus.
MajorVersion = 0
// MinorVersion is the hardcoded minor version of Cerberus.
MinorVersion = 12
// PatchVersion is the hardcoded patch version of Cerberus.
PatchVersion = 1
// VersionHash is the commit hash for the built version injected by the linker.
VersionHash = ""
// BuildTime is the build time in RFC3309 format injected by the linker.
BuildTime = ""
)

0 comments on commit c6eec81

Please sign in to comment.