Deploy over SSH from Gitlab CI pipeline

Not using Docker yet for deployments and still rely on SSH for this job? No worries, Gitlab CI has got you covered. I will show you a quick and easy way to make an SSH connection, transfer files, and run commands.

Step 1: Check your SSH connection

I will demonstrate this by using an AWS EC2 instance running an image created by Bitnami running LAMP.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valentin Despa

Valentin Despa

Software developer and online instructor. Imprint: http://vdespa.com/imprint