Skip to content

Commit

Permalink
fix: wrong date and missed link
Browse files Browse the repository at this point in the history
  • Loading branch information
dr460nf1r3 committed Nov 8, 2023
1 parent 1b114d0 commit ee6ac24
Show file tree
Hide file tree
Showing 25 changed files with 217 additions and 220 deletions.
6 changes: 2 additions & 4 deletions content/projects/garuda-ci/_index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Improving Garuda's repository set via CI/CD pipelines"
date: 2021-12-24
date: 2023-11-08
draft: false
description: "How our repository setup got automated, bringing a handful of advantages with it"
slug: "garuda-ci"
Expand Down Expand Up @@ -91,9 +91,7 @@ The [commitizen](https://github.com/commitizen-tools/commitizen) app is also abl

### Basic syntax/style checks

Another great thing to be added to the new repository is checks against PKGBUILDs and other files. Every commit is checked for basic integrity with a set of linters ([have a look at the script behind it](https://gitlab.com/garuda-linux/pkgbuilds/-/blob/main/.ci/lint.sh?ref_type=heads)) by a pipeline run:

<https://gitlab.com/garuda-linux/pkgbuilds/-/jobs/5487774423>
Another great thing to be added to the new repository is checks against PKGBUILDs and other files. Every commit is checked for basic integrity with a set of linters ([have a look at the script behind it](https://gitlab.com/garuda-linux/pkgbuilds/-/blob/main/.ci/lint.sh?ref_type=heads)) by a [pipeline run](https://gitlab.com/garuda-linux/pkgbuilds/-/jobs/5487774423)!

This would give instant feedback about whether obvious issues exist with a commit, which may be corrected (such as not complying with conventional commits!). Hopefully, it also increases code quality on its way by a bit :D The script may be run locally via `bash .ci/lint.sh`, possibly even correcting some of the issues by passing an argument `bash .ci/lint.sh apply` (dependencies of course need to be installed).

Expand Down
2 changes: 1 addition & 1 deletion public/index.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions public/projects/garuda-ci/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,7 @@ <h3 id="generating-changelogs" class="relative group">Generating changelogs <spa
<li>Use a commit per new feature: if you introduce multiple things related to the same commit, squash them. This is useful for auto-generating CHANGELOG.</li>
</ul>
<p>The <a href="https://github.com/commitizen-tools/commitizen" target="_blank" rel="noreferrer">commitizen</a> app is also able to interactively generate a complying commit message, so it can be a great help in case someone doesn&rsquo;t want to spend time reading documentation.</p>
<h3 id="basic-syntaxstyle-checks" class="relative group">Basic syntax/style checks <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#basic-syntaxstyle-checks" aria-label="Anchor">#</a></span></h3><p>Another great thing to be added to the new repository is checks against PKGBUILDs and other files. Every commit is checked for basic integrity with a set of linters (<a href="https://gitlab.com/garuda-linux/pkgbuilds/-/blob/main/.ci/lint.sh?ref_type=heads" target="_blank" rel="noreferrer">have a look at the script behind it</a>) by a pipeline run:</p>
<p><a href="https://gitlab.com/garuda-linux/pkgbuilds/-/jobs/5487774423" target="_blank" rel="noreferrer">https://gitlab.com/garuda-linux/pkgbuilds/-/jobs/5487774423</a></p>
<h3 id="basic-syntaxstyle-checks" class="relative group">Basic syntax/style checks <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#basic-syntaxstyle-checks" aria-label="Anchor">#</a></span></h3><p>Another great thing to be added to the new repository is checks against PKGBUILDs and other files. Every commit is checked for basic integrity with a set of linters (<a href="https://gitlab.com/garuda-linux/pkgbuilds/-/blob/main/.ci/lint.sh?ref_type=heads" target="_blank" rel="noreferrer">have a look at the script behind it</a>) by a <a href="https://gitlab.com/garuda-linux/pkgbuilds/-/jobs/5487774423" target="_blank" rel="noreferrer">pipeline run</a>!</p>
<p>This would give instant feedback about whether obvious issues exist with a commit, which may be corrected (such as not complying with conventional commits!). Hopefully, it also increases code quality on its way by a bit :D The script may be run locally via <code>bash .ci/lint.sh</code>, possibly even correcting some of the issues by passing an argument <code>bash .ci/lint.sh apply</code> (dependencies of course need to be installed).</p>
<p>If there are any other helpful tools in this regard, let me know! 😄</p>
<h3 id="implementation" class="relative group">Implementation <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#implementation" aria-label="Anchor">#</a></span></h3><p>Well, the implementation mostly consisted of writing the required bash scripts, preparing the server to accept build requests (securing it properly on the way), and testing it. First, the linter script was implemented, followed by the deployment (since it checks first and only deploys if checks were successful) via commit message. After that, the version bumps were implemented. It turned out to be working better than I anticipated! After having the setup in a working state, all of our packages/source repositories were either deleted (the obsolete ones, before the content was moved to our <a href="https://gitlab.com/garuda-linux/archive" target="_blank" rel="noreferrer">archive</a> of course) or had their PKGBUILD removed and a new <a href="https://gitlab.com/garuda-linux/themes-and-settings/settings/garuda-dr460nized/-/blob/master/README.md?ref_type=heads" target="_blank" rel="noreferrer">README</a> explaining where to find things and how to contribute added (the source repos mostly). Also, all package sources are now checked via sha256sums, some were either using md5sum or SKIP before. Existing PKGBUILDs needed issues reported by <a href="https://www.shellcheck.net/" target="_blank" rel="noreferrer">shellcheck</a>/<a href="https://github.com/mvdan/sh" target="_blank" rel="noreferrer">shfmt</a> to be worked out before the CI would actually be useful. Of course, documentation had to be updated with a new <a href="https://docs.garudalinux.net/repositories/general" target="_blank" rel="noreferrer">repository section</a>.</p>
Expand Down
2 changes: 1 addition & 1 deletion public/projects/garuda-ci/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<generator>Hugo -- gohugo.io</generator>
<language>en</language>
<copyright>:copyright: 2021-2023 [dr460nf1r3](https://dr460nf1r3.org)</copyright>
<lastBuildDate>Fri, 24 Dec 2021 00:00:00 +0000</lastBuildDate>
<lastBuildDate>Wed, 08 Nov 2023 00:00:00 +0000</lastBuildDate>
<atom:link href="https://dr460nf1r3.org/projects/garuda-ci/index.xml" rel="self" type="application/rss+xml" />
</channel>
</rss>
40 changes: 20 additions & 20 deletions public/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ <h3 class="flex items-center text-xl font-semibold">

<a
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/projects/nix-infra/"
>Taking the infra's NixOS setup to the next level</a
href="/projects/garuda-ci/"
>Improving Garuda's repository set via CI/CD pipelines</a
>


Expand Down Expand Up @@ -322,7 +322,7 @@ <h3 class="flex items-center text-xl font-semibold">
<div class="flex flex-row flex-wrap items-center">


<span>1440 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">7 mins</span>
<span>1375 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">7 mins</span>



Expand All @@ -336,7 +336,7 @@ <h3 class="flex items-center text-xl font-semibold">
</div>

<div class="prose py-1 dark:prose-invert">
This is a summary about the most recent major server maintenance we had at Garuda Linux / Chaotic-AUR &#x1f527;
This is another post dedicated to recent changes to some of our infrastructure - this time tackling the repository setups, particularly those containing PKGBUILDs or sources for our packages &#x1f527;
</div>

</div>
Expand All @@ -349,8 +349,8 @@ <h3 class="flex items-center text-xl font-semibold">

<a
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/projects/ansible-infra/"
>Ansible roles for the infra!</a
href="/projects/nix-infra/"
>Taking the infra's NixOS setup to the next level</a
>


Expand Down Expand Up @@ -386,7 +386,7 @@ <h3 class="flex items-center text-xl font-semibold">
<div class="flex flex-row flex-wrap items-center">


<span>642 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">4 mins</span>
<span>1440 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">7 mins</span>



Expand All @@ -400,7 +400,7 @@ <h3 class="flex items-center text-xl font-semibold">
</div>

<div class="prose py-1 dark:prose-invert">
As our infrastructure is growing, the number of services and tasks is increasing as well. This can be tedious and time-consuming, especially when you have to deal with a lot of servers - enter Ansible! Ansible allows automating tasks on a wide range of platforms, including Linux, Windows, and Mac. &#x1f527;
This is a summary about the most recent major server maintenance we had at Garuda Linux / Chaotic-AUR &#x1f527;
</div>

</div>
Expand All @@ -413,8 +413,8 @@ <h3 class="flex items-center text-xl font-semibold">

<a
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/projects/chaotic-aur/"
>Chaotic-AUR</a
href="/projects/ansible-infra/"
>Ansible roles for the infra!</a
>


Expand Down Expand Up @@ -450,7 +450,7 @@ <h3 class="flex items-center text-xl font-semibold">
<div class="flex flex-row flex-wrap items-center">


<span>232 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">2 mins</span>
<span>642 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">4 mins</span>



Expand All @@ -464,7 +464,7 @@ <h3 class="flex items-center text-xl font-semibold">
</div>

<div class="prose py-1 dark:prose-invert">
As Chaotic-AUR is the repository (kind of an app store for Linux distributions) of Garuda Linux and one of the user repositories with the most (and most useful) packages out there I decided to help with maintenance and provide another mirror for it. Especially a massive increase of web traffic on the main server made this necessary!
As our infrastructure is growing, the number of services and tasks is increasing as well. This can be tedious and time-consuming, especially when you have to deal with a lot of servers - enter Ansible! Ansible allows automating tasks on a wide range of platforms, including Linux, Windows, and Mac. &#x1f527;
</div>

</div>
Expand All @@ -477,8 +477,8 @@ <h3 class="flex items-center text-xl font-semibold">

<a
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/projects/garuda/"
>Garuda Linux</a
href="/projects/chaotic-aur/"
>Chaotic-AUR</a
>


Expand Down Expand Up @@ -514,7 +514,7 @@ <h3 class="flex items-center text-xl font-semibold">
<div class="flex flex-row flex-wrap items-center">


<span>974 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">5 mins</span>
<span>232 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">2 mins</span>



Expand All @@ -528,7 +528,7 @@ <h3 class="flex items-center text-xl font-semibold">
</div>

<div class="prose py-1 dark:prose-invert">
For about 2 years I have been using Linux. Since the beginning, I loved the way things work on Linux, the simplicity and customizability - something unheard of in among windows users. A long time of these two years I spent distro hopping, searching for the optimal Linux distribution for my requirements. &#x1f985;
As Chaotic-AUR is the repository (kind of an app store for Linux distributions) of Garuda Linux and one of the user repositories with the most (and most useful) packages out there I decided to help with maintenance and provide another mirror for it. Especially a massive increase of web traffic on the main server made this necessary!
</div>

</div>
Expand All @@ -541,8 +541,8 @@ <h3 class="flex items-center text-xl font-semibold">

<a
class="text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/projects/garuda-ci/"
>Improving Garuda's repository set via CI/CD pipelines</a
href="/projects/garuda/"
>Garuda Linux</a
>


Expand Down Expand Up @@ -578,7 +578,7 @@ <h3 class="flex items-center text-xl font-semibold">
<div class="flex flex-row flex-wrap items-center">


<span>1376 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">7 mins</span>
<span>974 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">5 mins</span>



Expand All @@ -592,7 +592,7 @@ <h3 class="flex items-center text-xl font-semibold">
</div>

<div class="prose py-1 dark:prose-invert">
This is another post dedicated to recent changes to some of our infrastructure - this time tackling the repository setups, particularly those containing PKGBUILDs or sources for our packages &#x1f527;
For about 2 years I have been using Linux. Since the beginning, I loved the way things work on Linux, the simplicity and customizability - something unheard of in among windows users. A long time of these two years I spent distro hopping, searching for the optimal Linux distribution for my requirements. &#x1f985;
</div>

</div>
Expand Down
32 changes: 16 additions & 16 deletions public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@



<url>
<loc>https://dr460nf1r3.org/projects/garuda-ci/</loc>
<lastmod>2023-11-08T17:42:42+01:00</lastmod>
</url>














Expand Down Expand Up @@ -57,21 +72,6 @@



<url>
<loc>https://dr460nf1r3.org/projects/garuda-ci/</loc>
<lastmod>2021-12-24T00:00:00+00:00</lastmod>
</url>











<url>
<loc>https://dr460nf1r3.org/projects/firedragon/</loc>
<lastmod>2023-01-29T18:24:49+01:00</lastmod>
Expand Down Expand Up @@ -106,7 +106,7 @@

<url>
<loc>https://dr460nf1r3.org/</loc>
<lastmod>2023-10-29T19:52:55+01:00</lastmod>
<lastmod>2023-11-08T17:42:42+01:00</lastmod>
</url>


Expand Down
2 changes: 1 addition & 1 deletion public/tags/ci/cd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ <h3 class="flex items-center text-xl font-semibold">
<div class="flex flex-row flex-wrap items-center">


<span>1376 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">7 mins</span>
<span>1375 words</span><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">7 mins</span>



Expand Down
2 changes: 1 addition & 1 deletion public/tags/ci/cd/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<item>
<title>Improving Garuda&#39;s repository set via CI/CD pipelines</title>
<link>https://dr460nf1r3.org/projects/garuda-ci/</link>
<pubDate>Fri, 24 Dec 2021 00:00:00 +0000</pubDate>
<pubDate>Wed, 08 Nov 2023 00:00:00 +0000</pubDate>
<guid>https://dr460nf1r3.org/projects/garuda-ci/</guid>
<description>This is another post dedicated to recent changes to some of our infrastructure - this time tackling the repository setups, particularly those containing PKGBUILDs or sources for our packages &amp;#x1f527;</description>
</item>
Expand Down
Loading

0 comments on commit ee6ac24

Please sign in to comment.