зеркало из https://github.com/Azure/spec-sla-bot.git
Коммит
5ad920b7b3
|
@ -20,6 +20,7 @@ RUN apk add --no-cache ca-certificates
|
|||
WORKDIR /bin/
|
||||
|
||||
COPY --from=builder /bin/app .
|
||||
COPY --from=builder /go/src/github.com/Azure/spec-sla-bot/templates ./templates
|
||||
|
||||
# Comment out to run the binary in "production" mode:
|
||||
# ENV GO_ENV=production
|
||||
|
|
|
@ -14,9 +14,8 @@ func CreatePrimaryTemplate(info *Message) {
|
|||
fmap := template.FuncMap{
|
||||
"FormatNumber": FormatNumber,
|
||||
"FormatAssignee": FormatAssignee}
|
||||
t := template.Must(template.New("primaryTemplate.tmpl").Funcs(fmap).ParseFiles("./templates/primaryTemplate.tmpl"))
|
||||
t := template.Must(template.New("primaryTemplate.tmpl").Funcs(fmap).ParseFiles("../templates/primaryTemplate.tmpl"))
|
||||
handle, err := os.Create("finalPrimaryTemplate.html")
|
||||
//fred, err := ioutil.TempFile()
|
||||
err = t.Execute(handle, *info)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
|
Загрузка…
Ссылка в новой задаче