-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add email subject & service deploy action
- Loading branch information
Showing
3 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM golang:1.21.6-alpine AS builder | ||
RUN mkdir /app | ||
ADD . /app | ||
WORKDIR /app | ||
RUN go build -o service . | ||
|
||
FROM alpine:latest | ||
RUN apk add --no-cache ca-certificates tzdata | ||
COPY --from=builder /app/service /service | ||
ENTRYPOINT ["./service"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,8 +78,9 @@ func processNewMessages() { | |
err := mailer.Send(mailClient, mailer.SendOptions{ | ||
From: fmt.Sprintf("%s <%s>", message.Name, fromEmail), | ||
ReplyTo: message.Email, | ||
To: "[email protected]", // TODO | ||
Subject: "Testing email", // TODO | ||
// TODO: change this after confirming everything is working okay | ||
To: "[email protected]", | ||
Subject: "Prosecute Reichardt Duck Farm for Animal Abuse", | ||
Body: message.Message, | ||
}) | ||
if err != nil { | ||
|