Skip to content

MozkaGit/gitlab-hello-world

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitLab Alpine Hello-World
CI/CD Pipeline

This repository contains the necessary configuration and code to deploy an alpine-based docker application on Heroku using CI/CD pipeline. This project originally came from my GitLab but I migrated it to GitHub and converted the .gitlab.ci to GitHub Actions.

Local Deployment with Docker

  1. Prerequisites
  • Docker installed on your local machine.
  • The project repository cloned to your local machine.
  1. Building the Docker Image
  • Navigate to the project directory in your terminal.
  • Build the Docker image using the provided Dockerfile with the following command : docker build -t hello-world .
  1. Running the Docker Container:
  • Once the image is built, you can run the Docker container locally with : docker run -p 80:5000 hello-world
  1. Accessing the Website
  • Open a web browser and navigate to http://localhost.
  • You should see your static website running locally.

Deployment to Heroku:

Main Files & Directories:

  • .gitlab-ci.yml: This file contains the GitLab CI/CD pipeline configuration for building, testing, and deploying the static website.
  • .github/workflows/ci-cd.yaml: This file contains the GitHub Actions workflow configuration for similar purposes as the GitLab CI/CD pipeline.
  1. Prerequisites
  • A GitLab or GitHub account.
  • Git installed on your local machine.
  • Setting Up your GitHub|GitLab Secrets
  1. Pushing Changes
  • The GitHub Actions workflow will handle deployment to Heroku.
  • Once the job is completed, you can access the production environment to see your deployed website.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published