Skip to content
Emanuele Gissi edited this page Jan 8, 2024 · 1 revision

This repo contains a fork of Dex, with an added SMTP connector.

How to create this repo

Fork the Dex official repo

Clone the repo locally:

$ git clone https://github.com/ict-vvf-genova/dex.git

Add remote to the local clone and fetch it:

$ git remote add dex-smtp https://github.com/Pie-Aeronefs/dex.git
$ git fetch dex-smtp

Then check remotes and branches:

$ git remote -v
dex-smtp	https://github.com/Pie-Aeronefs/dex.git (fetch)
dex-smtp	https://github.com/Pie-Aeronefs/dex.git (push)
origin	https://github.com/ict-vvf-genova/dex.git (fetch)
origin	https://github.com/ict-vvf-genova/dex.git (push)

$ git branch -r
...
dex-smtp/smtp
...

Create a local branch named smtp from the remote one:

$ git branch smtp dex-smtp/smtp
branch 'smtp' set up to track 'dex-smtp/smtp'

Merge local branch smtp into local master:

$ git checkout master
$ git pull  # to get all modifications from origin
$ git merge smtp
Automatic merge failed.

Open VSCode e fix the conflicts then commit the changes.

Before pushing, go mod tidy and commit the changes.

Then sync local with the remote master:

$ git push

and delete the local branch smtp:

git branch -d smtp

Disable original GitHub Actions

Enable Actions in general for the repo and then disable each original action.

How to create the Docker file

First of all your Github organization should allow you to create public packages.

Then add a new workflow Publish Docker Container.

The container is updated when pushing changes.

Its address is: FIXME

Clone this wiki locally