From 52c07aeb895752630f25354f38d5def62ddce574 Mon Sep 17 00:00:00 2001 From: "Maxence G. de Montauzan" Date: Sat, 16 Dec 2023 00:24:11 +0100 Subject: [PATCH] Just: retrieve mailpit as mail wrapper --- .gitignore | 1 + Justfile | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/.gitignore b/.gitignore index c9314b7..d93b612 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ # pixi environments .pixi +mailpit diff --git a/Justfile b/Justfile index 21fe940..36f9de1 100644 --- a/Justfile +++ b/Justfile @@ -49,3 +49,14 @@ release version: dbuild docker push {{ remote_image_name }}:{{ version }} git tag -a v{{ version }} -m "" git push --tags + +# MAILPIT PART +mailpit_version := "v1.11.0" +mailpit_archi := "linux-amd64" +mailpit_output := "mailpit-" + mailpit_version + "-" + mailpit_archi + ".tar.gz" + +# Retrive mailpit bin +get-mail-wrapper: + echo {{mailpit_output}} + curl -L https://github.com/axllent/mailpit/releases/download/{{mailpit_version}}/mailpit-{{mailpit_archi}}.tar.gz --output {{mailpit_output}} + tar xf {{mailpit_output}} mailpit