rtj.dev blog
Go to file
Roland Thomas Jr db4de72d94
rtj.dev Build and Deploy / Build-and-Deploy (push) Successful in 10s Details
-!
2024-02-18 01:53:58 -05:00
.gitea/workflows Revert 2024-02-16 18:54:16 -05:00
archetypes initial rtj.dev blog commit 2023-06-07 14:41:41 -04:00
assets/css/extended Update styling 2023-08-03 23:53:49 -04:00
content Revert and Test deploy 2024-02-12 23:00:29 -05:00
layouts/partials Update PaperMod, svg.html 2023-11-06 11:17:11 -05:00
static Add gitea_rtj_logo 2023-08-03 09:57:54 -04:00
themes Test workflow 2024-02-12 22:36:14 -05:00
.gitignore Update .gitignore 2023-06-13 09:15:38 -04:00
.gitmodules initial rtj.dev blog commit 2023-06-07 14:41:41 -04:00
Dockerfile Change base docker image 2024-02-12 22:44:15 -05:00
README.md Add README.md 2023-06-27 11:05:18 -04:00
default.conf Add stub 2023-06-14 21:49:50 -04:00
hugo.toml -! 2024-02-18 01:53:58 -05:00

README.md

rtj.dev

This repository contains the source code for the DevSecOps blog rtj.dev, which is built with Hugo and the PaperMod theme. This repository features Gitea Actions to automatically build a Docker image and push it to the repository's packages.

Table of Contents

  1. Repository Structure
  2. Building and Deployment
  3. Dockerfile
  4. Gitea Actions
  5. Contributing

Repository Structure

Here is the breakdown of the repository:

.
├── archetypes
│ └── default.md
├── assets
├── content
│ ├── archives.md
│ ├── posts
│ │ └── welcome.md
│ └── search.md
├── default.conf
├── Dockerfile
├── hugo.toml
├── layouts
│ └── partials
│ └── svg.html
├── public
├── resources
│ └── _gen
│ ├── assets
│ └── images
├── static
└── themes
└── PaperMod

The themes directory contains the PaperMod theme used by the Hugo site. The content directory contains the markdown files for the site's posts and pages.

Building and Deployment

The repository uses Gitea Actions to automatically build a Docker image and push it to the repository's packages whenever code is pushed to the repository.

Dockerfile

The Dockerfile specifies the build steps for creating the Docker image of the Hugo site. It uses the klakegg/hugo:ext-alpine-onbuild image to build the Hugo site and the nginx image to serve the site. The built site is copied to the /usr/share/nginx/html directory of the nginx image.

Gitea Actions

The Gitea Actions workflow, defined in build.yml, specifies the steps for building and deploying the Docker image. It runs whenever code is pushed to the repository.