Skip to content

Latest commit

 

History

History
63 lines (46 loc) · 2.02 KB

README.md

File metadata and controls

63 lines (46 loc) · 2.02 KB

loganmarchione.com

CI/CD (loganmarchione.com)

Overview

This repo contains the source for https://loganmarchione.com, built via Hugo.

This repo also builds https://loganmarchione.github.io and https://loganmarchione.dev on every PR and update to every PR.

Usage

Pre-reqs

# get a copy of the code
git clone https://github.com/loganmarchione/loganmarchione.com.git
cd loganmarchione.com

Build instructions

Docker

# build the Dockerfile
docker compose -f docker-compose-dev.yml up -d

# view logs
docker compose -f docker-compose-dev.yml logs -f

# destroy when done
docker compose -f docker-compose-dev.yml down

add, commit, push to kick off GitHub Actions

git add .
git commit -m "Update some stuff"
git push

GitHub Actions

Below is a visual representation of the GitHub Actions workflows.

  graph TD
    A((Start)) --> B[Create branch] & C[Commit to master]
    B --> D[Commits to branch]
    C --> AA["Deploy to loganmarchione.com"] & BB["Deploy to loganmarchione.github.io"]
    D --> E[Pull request to master]
    G --> C
    E --> BB
    H{Dev site looks good?} -- No --> D
    BB --> CC["Deploy to loganmarchione.dev"]
    CC --> H
    H -- Yes --> G[Merge PR]
Loading