mirror of
https://github.com/harness-community/drone-email.git
synced 2026-06-13 18:42:17 +08:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 99df93e082 | |||
| 77bf8220a3 | |||
| 1865866bee |
@@ -3,7 +3,7 @@ FROM golang:1.24-alpine as builder
|
||||
WORKDIR /go/src/drone-email
|
||||
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
|
||||
|
||||
|
||||
@@ -378,9 +378,9 @@ func run(c *cli.Context) error {
|
||||
Event: c.String("build.event"),
|
||||
Status: c.String("build.status"),
|
||||
Link: c.String("build.link"),
|
||||
Created: c.Int64("build.created"),
|
||||
Started: c.Int64("build.started"),
|
||||
Finished: c.Int64("build.finished"),
|
||||
Created: float64(c.Int64("build.created")),
|
||||
Started: float64(c.Int64("build.started")),
|
||||
Finished: float64(c.Int64("build.finished")),
|
||||
},
|
||||
Prev: Prev{
|
||||
Build: PrevBuild{
|
||||
@@ -394,8 +394,8 @@ func run(c *cli.Context) error {
|
||||
Job: Job{
|
||||
Status: c.String("job.status"),
|
||||
ExitCode: c.Int("job.exitCode"),
|
||||
Started: c.Int64("job.started"),
|
||||
Finished: c.Int64("job.finished"),
|
||||
Started: float64(c.Int64("job.started")),
|
||||
Finished: float64(c.Int64("job.finished")),
|
||||
},
|
||||
Yaml: Yaml{
|
||||
Signed: c.Bool("yaml.signed"),
|
||||
|
||||
@@ -50,9 +50,9 @@ type (
|
||||
Event string
|
||||
Status string
|
||||
Link string
|
||||
Created int64
|
||||
Started int64
|
||||
Finished int64
|
||||
Created float64
|
||||
Started float64
|
||||
Finished float64
|
||||
}
|
||||
|
||||
PrevBuild struct {
|
||||
@@ -72,8 +72,8 @@ type (
|
||||
Job struct {
|
||||
Status string
|
||||
ExitCode int
|
||||
Started int64
|
||||
Finished int64
|
||||
Started float64
|
||||
Finished float64
|
||||
}
|
||||
|
||||
Yaml struct {
|
||||
|
||||
Reference in New Issue
Block a user