Compare commits

...

4 Commits

Author SHA1 Message Date
Ompragash Viswanathan f5c31387a1 Fix the Default Email Template to use helper 2025-10-15 11:11:07 +05:30
Ompragash Viswanathan 99df93e082 fix int to float 2025-10-14 17:49:17 +05:30
OP (oppenheimer) 77bf8220a3 Update Dockerfile.linux.arm64 2025-10-14 17:29:12 +05:30
Ebtasam Faridy 1865866bee feat:[CI-18739]: fixing float error casued by template update 2025-10-14 16:13:52 +05:30
4 changed files with 13 additions and 13 deletions
+2 -2
View File
@@ -191,7 +191,7 @@ const DefaultTemplate = `
<div class="content"> <div class="content">
<table class="main" width="100%" cellpadding="0" cellspacing="0"> <table class="main" width="100%" cellpadding="0" cellspacing="0">
<tr> <tr>
{{#success build.status}} {{#equal build.status "success"}}
<td class="alert alert-good"> <td class="alert alert-good">
<a href="{{ build.link }}"> <a href="{{ build.link }}">
Successful build #{{ build.number }} Successful build #{{ build.number }}
@@ -203,7 +203,7 @@ const DefaultTemplate = `
Failed build #{{ build.number }} Failed build #{{ build.number }}
</a> </a>
</td> </td>
{{/success}} {{/equal}}
</tr> </tr>
<tr> <tr>
<td class="content-wrap"> <td class="content-wrap">
+1 -1
View File
@@ -3,7 +3,7 @@ FROM golang:1.24-alpine as builder
WORKDIR /go/src/drone-email WORKDIR /go/src/drone-email
COPY . . COPY . .
RUN GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=0 go build RUN GOOS=linux GOARCH=arm64 CGO_ENABLED=0 go build
FROM alpine:3.20 FROM alpine:3.20
+5 -5
View File
@@ -378,9 +378,9 @@ func run(c *cli.Context) error {
Event: c.String("build.event"), Event: c.String("build.event"),
Status: c.String("build.status"), Status: c.String("build.status"),
Link: c.String("build.link"), Link: c.String("build.link"),
Created: c.Int64("build.created"), Created: float64(c.Int64("build.created")),
Started: c.Int64("build.started"), Started: float64(c.Int64("build.started")),
Finished: c.Int64("build.finished"), Finished: float64(c.Int64("build.finished")),
}, },
Prev: Prev{ Prev: Prev{
Build: PrevBuild{ Build: PrevBuild{
@@ -394,8 +394,8 @@ func run(c *cli.Context) error {
Job: Job{ Job: Job{
Status: c.String("job.status"), Status: c.String("job.status"),
ExitCode: c.Int("job.exitCode"), ExitCode: c.Int("job.exitCode"),
Started: c.Int64("job.started"), Started: float64(c.Int64("job.started")),
Finished: c.Int64("job.finished"), Finished: float64(c.Int64("job.finished")),
}, },
Yaml: Yaml{ Yaml: Yaml{
Signed: c.Bool("yaml.signed"), Signed: c.Bool("yaml.signed"),
+5 -5
View File
@@ -50,9 +50,9 @@ type (
Event string Event string
Status string Status string
Link string Link string
Created int64 Created float64
Started int64 Started float64
Finished int64 Finished float64
} }
PrevBuild struct { PrevBuild struct {
@@ -72,8 +72,8 @@ type (
Job struct { Job struct {
Status string Status string
ExitCode int ExitCode int
Started int64 Started float64
Finished int64 Finished float64
} }
Yaml struct { Yaml struct {