1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-11-06 09:09:29 +02:00

feat: git remote url in the template engine

This commit is contained in:
Carlos Alexandro Becker
2018-10-04 09:38:19 -03:00
committed by Carlos Alexandro Becker
parent 01189ba02b
commit 748d97ef22
5 changed files with 27 additions and 0 deletions

View File

@@ -27,6 +27,7 @@ const (
commit = "Commit"
shortCommit = "ShortCommit"
fullCommit = "FullCommit"
gitURL = "GitURL"
major = "Major"
minor = "Minor"
patch = "Patch"
@@ -52,6 +53,7 @@ func New(ctx *context.Context) *Template {
commit: ctx.Git.Commit,
shortCommit: ctx.Git.ShortCommit,
fullCommit: ctx.Git.FullCommit,
gitURL: ctx.Git.URL,
env: ctx.Env,
date: time.Now().UTC().Format(time.RFC3339),
timestamp: time.Now().UTC().Unix(),