An out-of-the-box configuration for jenkins deployment.



create a docker compose file like:

the extra_host field is important so you can access the host machine from the container

create an nginx config file like

install the plugin *Publish over SSH* and configure the host and the ssh-key

create the project/ task as a free style and pick *Send files or execute commands over SSH *, with the host and commands for the deploy

Leave a Reply

Your email address will not be published. Required fields are marked *