<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Github on ayyzenn</title><link>https://ayyzenn.github.io/tags/github/</link><description>Recent content in Github on ayyzenn</description><generator>Hugo -- 0.163.3</generator><language>en-us</language><lastBuildDate>Tue, 10 Feb 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ayyzenn.github.io/tags/github/index.xml" rel="self" type="application/rss+xml"/><item><title>Jenkins + Docker Pipeline from GitHub</title><link>https://ayyzenn.github.io/posts/docker-pipeline-from-github/</link><pubDate>Tue, 10 Feb 2026 00:00:00 +0000</pubDate><guid>https://ayyzenn.github.io/posts/docker-pipeline-from-github/</guid><description>&lt;h2 id="what-i-built"&gt;What I Built&lt;/h2&gt;
&lt;p&gt;I wanted Jenkins to pull code from GitHub, build a Docker image, and run a container automatically. This post is the pipeline I put together for that.&lt;/p&gt;
&lt;hr&gt;
&lt;h2 id="goal-from-manual-to-automatic"&gt;Goal: From Manual to Automatic&lt;/h2&gt;
&lt;p&gt;Manually, we usually do this:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Clone a GitHub repository&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;docker build&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;docker run&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Check the output&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;With Jenkins, all of this happens &lt;strong&gt;automatically&lt;/strong&gt; when the pipeline runs.&lt;/p&gt;
&lt;p&gt;You click &lt;strong&gt;Build Now&lt;/strong&gt; (or trigger from GitHub), and Jenkins does the rest.&lt;/p&gt;</description></item><item><title>GitHub CLI and Personal Access Tokens: What I Use Daily</title><link>https://ayyzenn.github.io/posts/git_tools/</link><pubDate>Sat, 04 Sep 2021 00:00:00 +0000</pubDate><guid>https://ayyzenn.github.io/posts/git_tools/</guid><description>&lt;h2 id="why-i-bother-with-this"&gt;Why I Bother With This&lt;/h2&gt;
&lt;p&gt;I got tired of opening the browser every time I wanted to create a repo, check a PR, or trigger a workflow. &lt;strong&gt;GitHub CLI&lt;/strong&gt; (&lt;code&gt;gh&lt;/code&gt;) lets me do most of that from the terminal. &lt;strong&gt;Personal Access Tokens (PATs)&lt;/strong&gt; are how Git authenticates when you push over HTTPS.&lt;/p&gt;
&lt;p&gt;This post covers both — how I generate a PAT and how I use &lt;code&gt;gh&lt;/code&gt; day to day.&lt;/p&gt;</description></item><item><title>GitHub from the Command Line: How I Push My Code</title><link>https://ayyzenn.github.io/posts/git_cli/</link><pubDate>Fri, 03 Sep 2021 00:00:00 +0000</pubDate><guid>https://ayyzenn.github.io/posts/git_cli/</guid><description>&lt;h2 id="why-i-use-github"&gt;Why I Use GitHub&lt;/h2&gt;
&lt;p&gt;I use &lt;strong&gt;Git&lt;/strong&gt; to track changes in my code and &lt;strong&gt;GitHub&lt;/strong&gt; to host it online. Git runs on my machine. GitHub is the website that stores my repos and lets me share them.&lt;/p&gt;
&lt;p&gt;If you&amp;rsquo;re new: Git is the tool, GitHub is where the repos live.&lt;/p&gt;
&lt;h2 id="install-git"&gt;Install Git&lt;/h2&gt;
&lt;p&gt;&lt;strong&gt;Ubuntu:&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt update
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt install git
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;strong&gt;Arch Linux:&lt;/strong&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo pacman -S git
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Check it worked:&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;git --version
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="set-your-name-and-email"&gt;Set Your Name and Email&lt;/h2&gt;
&lt;p&gt;Git attaches this info to every commit:&lt;/p&gt;</description></item><item><title>Hugo: The Static Site Generator I Use for This Blog</title><link>https://ayyzenn.github.io/posts/hugo/</link><pubDate>Thu, 03 Dec 2020 00:00:00 +0000</pubDate><guid>https://ayyzenn.github.io/posts/hugo/</guid><description>&lt;h2 id="why-i-picked-hugo"&gt;Why I Picked Hugo&lt;/h2&gt;
&lt;p&gt;I wanted a blog that loads fast, doesn&amp;rsquo;t need a database, and lets me write posts in Markdown. &lt;strong&gt;Hugo&lt;/strong&gt; does exactly that — it builds plain HTML files from my content, and I host them on GitHub Pages.&lt;/p&gt;
&lt;p&gt;No WordPress, no PHP, no MySQL. Just markdown files and a &lt;code&gt;hugo&lt;/code&gt; command.&lt;/p&gt;
&lt;h2 id="what-i-like-about-it"&gt;What I Like About It&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Fast builds&lt;/strong&gt; — my whole site compiles in under a second&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Markdown posts&lt;/strong&gt; — write in any editor, commit to Git&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Themes&lt;/strong&gt; — I&amp;rsquo;m using PaperMod&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;GitHub Pages&lt;/strong&gt; — free hosting, deploys on push&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="how-i-set-up-hugo"&gt;How I Set Up Hugo&lt;/h2&gt;
&lt;h3 id="1-install-hugo"&gt;1. Install Hugo&lt;/h3&gt;
&lt;h4 id="on-arch-linux"&gt;On Arch Linux&lt;/h4&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo pacman -S hugo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h4 id="on-ubuntu"&gt;On Ubuntu&lt;/h4&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-bash" data-lang="bash"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt update
&lt;/span&gt;&lt;/span&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo apt install hugo
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Or install the extended edition from the official release page (recommended for themes that use Sass):&lt;/p&gt;</description></item></channel></rss>