Skip to content

Commit

Permalink
🛠️ Fix CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
8thgencore committed Jun 8, 2024
1 parent b33e6f0 commit c8f022a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ jobs:
docker pull ${{ secrets.DOCKER_USERNAME }}/mailfort:latest
docker stop mailfort_container || true
docker rm mailfort_container || true
echo ${{ secrets.MAIL_HOST }} > .env
echo ${{ secrets.MAIL_PORT }} >> .env
echo ${{ secrets.MAIL_USERNAME }} >> .env
echo ${{ secrets.MAIL_PASSWORD }} >> .env
scp -o StrictHostKeyChecking=no ./config/prod.yaml ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }}:./config/
docker run -d -p 8350:8080 --name mailfort_container -e CONFIG_PATH=./config/prod.yaml ${{ secrets.DOCKER_USERNAME }}/mailfort:latest
1 change: 1 addition & 0 deletions internal/service/mail/mail.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ func sendMail(log slog.Logger, cfg config.Mail, emailTo, code string, messageTyp
// server.TLSConfig = &tls.Config{InsecureSkipVerify: true}

// SMTP client
log.Info("Connecting to SMTP server", "host", server.Host)
smtpClient, err := server.Connect()

if err != nil {
Expand Down

0 comments on commit c8f022a

Please sign in to comment.