Gitlab CI pipeline for AWS EC2 deployment

Deploy from Gitlab to AWS


Photo by Rinson Chory on Unsplash

Prerequisite

  • Gitlab account
  • Docker basic knowledge

Agenda

  1. Create Gitlab blank project
  2. Create Dockerfile
  3. Create Gitlab CI pipeline (.gitlab-ci.yml)

Prerequisite

  • GitLab account
  • Remote server (I’m using Azure’s Linux VM)

Agenda

  1. Create new GitLab project
  2. Create and add SSH keys
  3. Create and run GitLab CI/CD pipeline

Create new GitLab project


Photo by Emile Perron on Unsplash

Prerequisite

  • Docker
  • Command line (bash, zsh etc.)
  • NPM
  • Part 1 of the series finished — you can find Part 1 here

Scope

  1. Build Vue.js docker image from Dockerfile and run container
  2. Use docker compose to run container and build image

Vue.js frontend

Initial Vue.js project running locally


Photo by Emile Perron on Unsplash

Prerequisite

  • Docker
  • Command line (bash, zsh etc.)

Scope

  1. Project structure
  2. Simple Go app
  3. Build Go docker image from Dockerfile and run container
  4. Use docker compose to run container and build image
  5. Update the solution to include live reloading on code change
  6. Update the backend to…

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