chore: use Dockerfile
All checks were successful
Sample Testing / my_job (push) Successful in 2m3s

This commit is contained in:
Marcel S. Henselin 2026-04-16 10:34:45 +02:00
parent eeed1a402d
commit c6521c7fcf

View file

@ -37,14 +37,14 @@ func main() {
author := githubactions.GetInput("author")
if author == "" {
githubactions.Infof("Missing input 'author'")
githubactions.Infof("[INFO] Missing input 'author', using default")
author = "STACKIT git action"
}
data.Author = author
title := githubactions.GetInput("title")
if title == "" {
githubactions.Infof("Missing input 'title'")
githubactions.Infof("[INFO] Missing input 'title', using default")
title = "STACKIT git action"
}
data.Title = title
@ -134,7 +134,7 @@ func card(d templateData) ([]byte, error) {
d.EventBody = "<b>Project:</b> {{ .Project }}<br><b>Commit-id:</b> <font color=\"#FF0000\">{{ .Commit }}</font><br><b>Branch:</b> <font color=\"#00FF00f\">{{ .Branch }}</font><br><b>Build Status:</b> <font color=\"#0000ff\">{{ .Status }}</font>"
}
// data := `{
//data := `{
// "cards": [
// {
// "header": {
@ -188,7 +188,7 @@ func card(d templateData) ([]byte, error) {
"title": "{{ .Title }}",
"subtitle": "{{ .SubTitle }}",
"imageUrl": "{{ .IconUrl }}",
"imageStyle": "IMAGE"
"imageStyle": "IMAGE",
"imageType": "SQUARE"
},
"sections": [