From e15c4af0ad2fd37a4d181f718fd36bf543c2ba23 Mon Sep 17 00:00:00 2001 From: Madison Scott-Clary Date: Mon, 27 Jun 2022 10:15:06 -0700 Subject: [PATCH] update from sparkleup --- work/gitea-3.md | 17 +++++++++++++++++ work/index.md | 3 +++ 2 files changed, 20 insertions(+) diff --git a/work/gitea-3.md b/work/gitea-3.md index c313a8bc..d409d5b0 100644 --- a/work/gitea-3.md +++ b/work/gitea-3.md @@ -1 +1,18 @@ # How To Use Git Hooks with Gitea + +### Introduction + +The popular source code management system [Git](https://git-scm.com) is quite flexible when it comes to allowing you to perform various tasks when actions are taken on a repository. For example, you might want to send an email when a feature branch is merged into your main branch, or log various Git actions to a file for tracking. + +These actions are called **hooks**, and there are several that you can use for various steps along the way to perform additional work within your Git workflow. This tutorial will take a look at three such hooks to provide an overview of what is possible with this functionality. + +## Prerequisites + +Gitea is a lightweight and flexible source code management system that will be used for the examples here, so before beginning this tutorial, you should have the following: + +* An Ubuntu 20.04 server with a non-root user configured with `sudo` privileges as described in the [Initial server setup for Ubuntu 20.94](https://www.digitalocean.com/community/tutorials/initial-server-setup-with-ubuntu-20-04) tutorial. +* Gitea installed on the server behind Nginx, ready to interact with using Git over SSH as described in [How To Install Gitea on Ubuntu Using Docker](https://www.digitalocean.com/community/tutorials/how-to-install-gitea-on-ubuntu-using-docker). + +## Publishing a Static HTML Site When Commits are Received + +### Step 1 : diff --git a/work/index.md b/work/index.md index 9c858d31..a6684628 100644 --- a/work/index.md +++ b/work/index.md @@ -7,3 +7,6 @@ * [How to Use Struct Tags in Go](ctm-514) ## New + +* [Gitea 2](gitea-2) +* [Gitea 3](gitea-3)