From 4fafe1254ac8223803aef31576d031ddb3876d30 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Tue, 18 Nov 2025 09:40:07 +0000 Subject: [PATCH 01/72] Add draft support --- build-dev.sh | 1 + build.sh | 1 + parse.go | 14 +++++++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/build-dev.sh b/build-dev.sh index e120402..2183f08 100755 --- a/build-dev.sh +++ b/build-dev.sh @@ -1,3 +1,4 @@ #!/bin/bash +export BLOG_ENV=dev watchexec --restart -w ./ --no-process-group -- go run . diff --git a/build.sh b/build.sh index a1be35d..6bda2da 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,4 @@ #!/bin/bash +rm -rf build go run . diff --git a/parse.go b/parse.go index 2025c4e..ee266d2 100644 --- a/parse.go +++ b/parse.go @@ -27,6 +27,7 @@ type Post struct { Content *org.Document // Parsed content of the post ReadTime uint8 // Estimated reading time in minutes Hero string // URL path to the hero image for the post + Draft bool // Is the article a draft (will not be rendered if so) } // listPosts reads the posts directory and returns a slice of Post structs. @@ -49,7 +50,13 @@ func listPosts() ([]Post, error) { if err != nil { log.Println("[!] Unable to parse ", filePath) } else { - posts = append(posts, post) + if post.Draft { + if os.Getenv("BLOG_ENV") == "dev" { + posts = append(posts, post) + } + } else { + posts = append(posts, post) + } } } @@ -103,6 +110,10 @@ func parseOrg(filePath string) (Post, error) { slug := orgData.Get("SLUG") tags := strings.Split(orgData.Get("TAGS"), ", ") hero := path.Join("/medias", orgData.Get("HERO")) + draft := true + if orgData.Get("DRAFT") == "false" { + draft = false + } date, _ := time.Parse("2006-01-02", dateStr) ts := date.Unix() @@ -123,5 +134,6 @@ func parseOrg(filePath string) (Post, error) { Content: orgData, ReadTime: uint8(readTime), Hero: hero, + Draft: draft, }, nil } -- 2.49.1 From 604468a2ff68e392e97e3fcfcee148e21fe058a4 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Tue, 18 Nov 2025 09:40:19 +0000 Subject: [PATCH 02/72] Add better logging for style processing --- styles.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/styles.go b/styles.go index d08153e..b86d47c 100644 --- a/styles.go +++ b/styles.go @@ -48,13 +48,13 @@ func compileSCSS() (string, error) { transpiler, err := godartsass.Start(godartsass.Options{}) if err != nil { - log.Fatal(err) + log.Fatal("cannot start transpiler: ", err) } css, err := transpiler.Execute(args) if err != nil { - log.Fatal(err) + log.Fatal("cannot compile SCSS: ", err) } log.Println("CSS compiled") -- 2.49.1 From e04f8d6d1f882f237d35fb77b4caff087480b7cf Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Tue, 18 Nov 2025 09:40:27 +0000 Subject: [PATCH 03/72] Update todo list --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a38140..3a7ede2 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ This is a personal blog built with Go, using the go-org library to parse Org-mod - [ ] footer - [ ] resume page - [ ] contact page -- [ ] responsive +- [X] responsive - [ ] RSS - [ ] favicon - [ ] search -- 2.49.1 From e00b158d970bd51d8ade9c4775b942d29e2c844c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Tue, 18 Nov 2025 09:40:51 +0000 Subject: [PATCH 04/72] Add ci --- .gitea/workflows/build.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..6d5a1a2 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,18 @@ +name: Build +run-name: $ is testing out Gitea Actions 🚀 +on: [push] +jobs: + test: + runs-on: ubuntu-latest + steps: + - run: echo "🎉 The job was automatically triggered by a $ event." + - run: echo "🐧 This job is now running on a $ server hosted by Gitea!" + - run: echo "🔎 The name of your branch is $ and your repository is $." + - name: Check out repository code + uses: actions/checkout@v3 + - run: echo "💡 The $ repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - name: List files in the repository + run: | + ls $ + - run: echo "🍏 This job's status is $." -- 2.49.1 From ecd91989535004a46fd65ccaf8ae52503effcaf5 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Tue, 18 Nov 2025 10:40:33 +0000 Subject: [PATCH 05/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6d5a1a2..c7f8c9c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,7 +3,7 @@ run-name: $ is testing out Gitea Actions 🚀 on: [push] jobs: test: - runs-on: ubuntu-latest + runs-on: docker.io/ubuntu:latest steps: - run: echo "🎉 The job was automatically triggered by a $ event." - run: echo "🐧 This job is now running on a $ server hosted by Gitea!" -- 2.49.1 From 37d3f74cbde771da0ab914930999d0e0d3b153b9 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Wed, 19 Nov 2025 17:02:35 +0000 Subject: [PATCH 06/72] Update CI --- .gitea/workflows/build.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c7f8c9c..af2369e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,14 +5,7 @@ jobs: test: runs-on: docker.io/ubuntu:latest steps: - - run: echo "🎉 The job was automatically triggered by a $ event." - - run: echo "🐧 This job is now running on a $ server hosted by Gitea!" - - run: echo "🔎 The name of your branch is $ and your repository is $." - - name: Check out repository code - uses: actions/checkout@v3 - - run: echo "💡 The $ repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - run: echo "🎉 GO" - name: List files in the repository run: | ls $ - - run: echo "🍏 This job's status is $." -- 2.49.1 From 451ccaa5cfb096f905f52d05b5a12c086aef165c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Wed, 19 Nov 2025 17:06:53 +0000 Subject: [PATCH 07/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index af2369e..4584bdc 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -5,7 +5,7 @@ jobs: test: runs-on: docker.io/ubuntu:latest steps: - - run: echo "🎉 GO" + - run: echo "🎉 - GO" - name: List files in the repository run: | ls $ -- 2.49.1 From 628474510a9520e309d6e8f22d5dd93bca3e9dc5 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Wed, 19 Nov 2025 17:30:38 +0000 Subject: [PATCH 08/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4584bdc..f7b0004 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -3,7 +3,7 @@ run-name: $ is testing out Gitea Actions 🚀 on: [push] jobs: test: - runs-on: docker.io/ubuntu:latest + runs-on: docker.io/archlinux:latest steps: - run: echo "🎉 - GO" - name: List files in the repository -- 2.49.1 From d2a20343185a9fb9fd448e6f0ab30060fcc8aae0 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Wed, 19 Nov 2025 17:31:04 +0000 Subject: [PATCH 09/72] Update CI --- .gitea/workflows/build.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f7b0004..c537cc6 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,11 +1,19 @@ -name: Build -run-name: $ is testing out Gitea Actions 🚀 +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 on: [push] + jobs: - test: - runs-on: docker.io/archlinux:latest + Explore-Gitea-Actions: + runs-on: ubuntu-latest steps: - - run: echo "🎉 - GO" + - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." + - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" + - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | - ls $ + ls ${{ gitea.workspace }} + - run: echo "🍏 This job's status is ${{ job.status }}." -- 2.49.1 From 26a727fdc0065d69c47cf14627dbad36b4426eb0 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Wed, 19 Nov 2025 17:33:03 +0000 Subject: [PATCH 10/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index c537cc6..a10cb45 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -4,7 +4,7 @@ on: [push] jobs: Explore-Gitea-Actions: - runs-on: ubuntu-latest + runs-on: docker.io/ubuntu:latest steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" -- 2.49.1 From 7473910598df7901dae81a8476e0a9462c3b204a Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Wed, 19 Nov 2025 17:43:36 +0000 Subject: [PATCH 11/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a10cb45..43eb12e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -4,7 +4,7 @@ on: [push] jobs: Explore-Gitea-Actions: - runs-on: docker.io/ubuntu:latest + runs-on: arch-test steps: - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" -- 2.49.1 From e00b2b2d33b6116c7bcd7537bc84711a87d04af1 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:17:32 +0000 Subject: [PATCH 12/72] Update CI --- .gitea/workflows/build.yaml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 43eb12e..36e936e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,13 +6,9 @@ jobs: Explore-Gitea-Actions: runs-on: arch-test steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." + - run: echo "🎉 GO !!" + - name: "test" + run: ls - name: List files in the repository run: | ls ${{ gitea.workspace }} -- 2.49.1 From c6403415f4e77b7a917ae752312ee69e3d044b45 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:19:21 +0000 Subject: [PATCH 13/72] Update CI --- .gitea/workflows/build.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 36e936e..2f6d950 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,9 +6,12 @@ jobs: Explore-Gitea-Actions: runs-on: arch-test steps: - - run: echo "🎉 GO !!" - - name: "test" - run: ls + - name: Install node + run: pacman -Syy --noconfirm nodejs npm + - name: Check out repository code + uses: actions/checkout@v4 + - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." + - run: echo "🖥️ The workflow is now ready to test your code on the runner." - name: List files in the repository run: | ls ${{ gitea.workspace }} -- 2.49.1 From 9191c0d50a5c0b020e727d0f88bdafd440cbcf77 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:19:53 +0000 Subject: [PATCH 14/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2f6d950..2963d0c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -4,7 +4,7 @@ on: [push] jobs: Explore-Gitea-Actions: - runs-on: arch-test + runs-on: ubuntu-latest steps: - name: Install node run: pacman -Syy --noconfirm nodejs npm -- 2.49.1 From ee517d6aca75b6ea6b305d3517ff37c258d30b52 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:21:14 +0000 Subject: [PATCH 15/72] Update CI --- .gitea/workflows/build.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2963d0c..1fe285e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,8 +6,6 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - name: Install node - run: pacman -Syy --noconfirm nodejs npm - name: Check out repository code uses: actions/checkout@v4 - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." -- 2.49.1 From dd5db92bea3b23504dd60d72eb7abefdc8eb60cf Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:46:01 +0000 Subject: [PATCH 16/72] Update CI --- .gitea/workflows/build.yaml | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1fe285e..e1dc9b9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,11 +6,22 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: + - name: Install buildah + run: apt update && apt install -y buildah - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: evanespen/blog:latest + # - name: Build image + # run: buildah build -f Dockerfile -t blog + # - name: Log in to registry + # uses: docker/login-action@v3 + # with: + # registry: ${{ env.GITEA_DOMAIN }} + # username: ${{ env.GITEA_REGISTRY_USER }} + # password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} -- 2.49.1 From 22baf098f229450ed80d3d953244cf90b1cb7156 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:46:29 +0000 Subject: [PATCH 17/72] Update CI --- .gitea/workflows/build.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index e1dc9b9..3beebcf 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,8 +6,6 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - name: Install buildah - run: apt update && apt install -y buildah - name: Check out repository code uses: actions/checkout@v4 - name: Set up Docker Buildx -- 2.49.1 From 3e2fcc2e0970ef77fbdce9fa1ec130f9ca2be524 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 11:55:42 +0000 Subject: [PATCH 18/72] Update CI --- .gitea/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3beebcf..8c2763f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -10,6 +10,8 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 + with: + endpoint: tcp://localhost:2376 - name: Build and push uses: docker/build-push-action@v6 with: -- 2.49.1 From a283e63404b4360fdf8792a2c472502987c9199a Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:02:05 +0000 Subject: [PATCH 19/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 8c2763f..bad8d7a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -11,7 +11,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - endpoint: tcp://localhost:2376 + endpoint: unix:///run/user/1000/docker.sock - name: Build and push uses: docker/build-push-action@v6 with: -- 2.49.1 From e626cc9b76fe76baaae239f7212a9b4c644c8881 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:05:50 +0000 Subject: [PATCH 20/72] Update CI --- .gitea/workflows/build.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index bad8d7a..37649a1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,17 +6,19 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - name: Check out repository code - uses: actions/checkout@v4 + # - name: Check out repository code + # uses: actions/checkout@v4 + - name: DEBUG + run: ls /run; ls /run/user; ls /run/user/1000 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: endpoint: unix:///run/user/1000/docker.sock - - name: Build and push - uses: docker/build-push-action@v6 - with: - push: true - tags: evanespen/blog:latest + # - name: Build and push + # uses: docker/build-push-action@v6 + # with: + # push: true + # tags: evanespen/blog:latest # - name: Build image # run: buildah build -f Dockerfile -t blog # - name: Log in to registry -- 2.49.1 From 95504cb8b9c5ec598ed3beb47fd3cc79092b74ca Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:06:17 +0000 Subject: [PATCH 21/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 37649a1..f45a623 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -9,7 +9,7 @@ jobs: # - name: Check out repository code # uses: actions/checkout@v4 - name: DEBUG - run: ls /run; ls /run/user; ls /run/user/1000 + run: ls /run; echo "---"; ls /run/user - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: -- 2.49.1 From 6ccc0f4f3fe99e54f9799717e9dd698ecbf9c0a0 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:20:45 +0000 Subject: [PATCH 22/72] Update CI --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f45a623..0e445ae 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -12,8 +12,8 @@ jobs: run: ls /run; echo "---"; ls /run/user - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - with: - endpoint: unix:///run/user/1000/docker.sock + # with: + # endpoint: unix:///run/user/1000/docker.sock # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 178b7e341957af07ffd0ce87b0e66446e459aa83 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:52:21 +0000 Subject: [PATCH 23/72] Update CI --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0e445ae..b5da949 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -12,8 +12,8 @@ jobs: run: ls /run; echo "---"; ls /run/user - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - # with: - # endpoint: unix:///run/user/1000/docker.sock + with: + endpoint: unix:///run/docker.sock # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 22d1473f29afd81d30319baf9d5fdd30c841ea6c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:55:40 +0000 Subject: [PATCH 24/72] Update CI --- .gitea/workflows/build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index b5da949..d01ae14 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -8,12 +8,10 @@ jobs: steps: # - name: Check out repository code # uses: actions/checkout@v4 - - name: DEBUG - run: ls /run; echo "---"; ls /run/user - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 with: - endpoint: unix:///run/docker.sock + endpoint: unix:///var/run/docker.sock # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From d0ae75c9739b0edd5ebc693549a9c6c30471bc5c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:57:42 +0000 Subject: [PATCH 25/72] Update CI --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d01ae14..f3c03f4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -10,8 +10,8 @@ jobs: # uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - with: - endpoint: unix:///var/run/docker.sock + # with: + # endpoint: unix:///var/run/docker.sock # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 5d0329d6c594af73fa9828db92ef785ecaf2547b Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 12:58:39 +0000 Subject: [PATCH 26/72] Update CI --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f3c03f4..12bad57 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -10,8 +10,8 @@ jobs: # uses: actions/checkout@v4 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - # with: - # endpoint: unix:///var/run/docker.sock + with: + endpoint: tcp://127.0.0.1:2376 # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 5a09cb629d913cec8b6120aa66dfed952370123f Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:12:40 +0000 Subject: [PATCH 27/72] Update CI --- .gitea/workflows/build.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 12bad57..2d2ed90 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -8,10 +8,12 @@ jobs: steps: # - name: Check out repository code # uses: actions/checkout@v4 + # - name: Set up Docker Buildx + # uses: docker/setup-buildx-action@v3 + # with: + # endpoint: tcp://127.0.0.1:2376 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v3 - with: - endpoint: tcp://127.0.0.1:2376 + uses: https://github.com/docker/setup-buildx-action@v3 # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 70c1381e1dbfd6233eb3b8c0e54ffa8d2784f466 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:15:24 +0000 Subject: [PATCH 28/72] Update CI --- .gitea/workflows/build.yaml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 2d2ed90..47f8a85 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,14 +6,18 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - # - name: Check out repository code - # uses: actions/checkout@v4 - # - name: Set up Docker Buildx - # uses: docker/setup-buildx-action@v3 - # with: - # endpoint: tcp://127.0.0.1:2376 + - name: Check out repository code + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 + - name: Build and push + uses: https://github.com/docker/build-push-action@v6 + with: + context: . + push: true + pull: true + no-cache: true + tags: "${{ env.GITEA_DOMAIN }}/${{ env.GITEA_REGISTRY_USER }}/blog:${{ gitea.event.package.version }}" # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From dedebb2c36ad775952231dce8d6ce6d2c0349017 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:18:09 +0000 Subject: [PATCH 29/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 47f8a85..249bed3 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -17,7 +17,7 @@ jobs: push: true pull: true no-cache: true - tags: "${{ env.GITEA_DOMAIN }}/${{ env.GITEA_REGISTRY_USER }}/blog:${{ gitea.event.package.version }}" + tags: "${{ env.GITEA_DOMAIN }}/evanespen/blog:${{ gitea.event.package.version }}" # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 55fef92fa9f7171f7ba9ef7f61c4437fff8336c2 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:19:19 +0000 Subject: [PATCH 30/72] Update CI --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 249bed3..6bf0f1b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -17,7 +17,7 @@ jobs: push: true pull: true no-cache: true - tags: "${{ env.GITEA_DOMAIN }}/evanespen/blog:${{ gitea.event.package.version }}" + tags: "git.vanespen.dev/evanespen/blog:latest" # - name: Build and push # uses: docker/build-push-action@v6 # with: -- 2.49.1 From 669b1ca24075388f10ceee449946162b49c4b7b1 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:21:01 +0000 Subject: [PATCH 31/72] Update CI --- .gitea/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6bf0f1b..f4102f9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -10,6 +10,8 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 + - name: DEBUG + run: ls - name: Build and push uses: https://github.com/docker/build-push-action@v6 with: -- 2.49.1 From 9283322dbbdb3a830aab2c9edd131888f3315e32 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:22:03 +0000 Subject: [PATCH 32/72] Add Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..08141cf --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM archlinux as builder + +RUN pacman -Syy \ + && pacman -S --noconfirm go dart-sass icu + +COPY . /app +WORKDIR /app + +RUN go run . + +FROM nginx:alpine + +RUN rm -rf /usr/share/nginx/html/ + +COPY --from=builder /app/build/ /usr/share/nginx/html/ + +EXPOSE 80 -- 2.49.1 From c18e477dfc86fdf64d1b7d828a8e3899d9576a39 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 13:26:35 +0000 Subject: [PATCH 33/72] Add Dockerfile --- .gitea/workflows/build.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f4102f9..247d6a1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,6 +6,12 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: + - name: Login to container registry + uses: https://github.com/docker/login-action@v3 + with: + registry: https://git.vanespen.dev + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} - name: Check out repository code uses: actions/checkout@v4 - name: Set up Docker Buildx -- 2.49.1 From 1b1d2dfa23c854a01252bc95692e6fb85c25c11b Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:33:17 +0000 Subject: [PATCH 34/72] Add Dockerfile --- .gitea/workflows/build.yaml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 247d6a1..3774e1b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -16,8 +16,6 @@ jobs: uses: actions/checkout@v4 - name: Set up Docker Buildx uses: https://github.com/docker/setup-buildx-action@v3 - - name: DEBUG - run: ls - name: Build and push uses: https://github.com/docker/build-push-action@v6 with: @@ -26,16 +24,11 @@ jobs: pull: true no-cache: true tags: "git.vanespen.dev/evanespen/blog:latest" - # - name: Build and push - # uses: docker/build-push-action@v6 - # with: - # push: true - # tags: evanespen/blog:latest - # - name: Build image - # run: buildah build -f Dockerfile -t blog - # - name: Log in to registry - # uses: docker/login-action@v3 - # with: - # registry: ${{ env.GITEA_DOMAIN }} - # username: ${{ env.GITEA_REGISTRY_USER }} - # password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} + - run: export GIT_TOKEN=${{ env.TOKEN }} + - run: export GIT_REPO=https://git.vanespen.dev/blog + - name: Setup argocd + run: | + wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ + && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ + && argocd-autopilot-linux-amd64 repo bootstrap + -- 2.49.1 From 04769dc468271e1059c0801325958c24d1e83696 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:39:24 +0000 Subject: [PATCH 35/72] Testing --- .gitea/workflows/build.yaml | 39 +++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3774e1b..127bad3 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,29 +6,30 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - name: Login to container registry - uses: https://github.com/docker/login-action@v3 - with: - registry: https://git.vanespen.dev - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - - name: Check out repository code - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - - name: Build and push - uses: https://github.com/docker/build-push-action@v6 - with: - context: . - push: true - pull: true - no-cache: true - tags: "git.vanespen.dev/evanespen/blog:latest" + # - name: Login to container registry + # uses: https://github.com/docker/login-action@v3 + # with: + # registry: https://git.vanespen.dev + # username: ${{ secrets.USERNAME }} + # password: ${{ secrets.PASSWORD }} + # - name: Check out repository code + # uses: actions/checkout@v4 + # - name: Set up Docker Buildx + # uses: https://github.com/docker/setup-buildx-action@v3 + # - name: Build and push + # uses: https://github.com/docker/build-push-action@v6 + # with: + # context: . + # push: true + # pull: true + # no-cache: true + # tags: "git.vanespen.dev/evanespen/blog:latest" - run: export GIT_TOKEN=${{ env.TOKEN }} - run: export GIT_REPO=https://git.vanespen.dev/blog - name: Setup argocd run: | wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ - && argocd-autopilot-linux-amd64 repo bootstrap + && ls + # && argocd-autopilot-linux-amd64 repo bootstrap -- 2.49.1 From 28751fb1d373a140654baa88f77f14d799b7a824 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:41:07 +0000 Subject: [PATCH 36/72] Testing --- .gitea/workflows/build.yaml | 39 ++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 127bad3..a823020 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,30 +6,29 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - # - name: Login to container registry - # uses: https://github.com/docker/login-action@v3 - # with: - # registry: https://git.vanespen.dev - # username: ${{ secrets.USERNAME }} - # password: ${{ secrets.PASSWORD }} - # - name: Check out repository code - # uses: actions/checkout@v4 - # - name: Set up Docker Buildx - # uses: https://github.com/docker/setup-buildx-action@v3 - # - name: Build and push - # uses: https://github.com/docker/build-push-action@v6 - # with: - # context: . - # push: true - # pull: true - # no-cache: true - # tags: "git.vanespen.dev/evanespen/blog:latest" + - name: Login to container registry + uses: https://github.com/docker/login-action@v3 + with: + registry: https://git.vanespen.dev + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} + - name: Check out repository code + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + - name: Build and push + uses: https://github.com/docker/build-push-action@v6 + with: + context: . + push: true + pull: true + no-cache: true + tags: "git.vanespen.dev/evanespen/blog:latest" - run: export GIT_TOKEN=${{ env.TOKEN }} - run: export GIT_REPO=https://git.vanespen.dev/blog - name: Setup argocd run: | wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ - && ls - # && argocd-autopilot-linux-amd64 repo bootstrap + && ./argocd-autopilot-linux-amd64 repo bootstrap -- 2.49.1 From bd57b3e5c7b030a95063fca51ad8eb675faa7625 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:45:18 +0000 Subject: [PATCH 37/72] Testing --- .gitea/workflows/build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a823020..6da7b01 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,11 +24,9 @@ jobs: pull: true no-cache: true tags: "git.vanespen.dev/evanespen/blog:latest" - - run: export GIT_TOKEN=${{ env.TOKEN }} - - run: export GIT_REPO=https://git.vanespen.dev/blog - name: Setup argocd run: | wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ - && ./argocd-autopilot-linux-amd64 repo bootstrap + && ./argocd-autopilot-linux-amd64 repo bootstrap --git-token ${{ env.TOKEN }} --repo https://git.vanespen.dev/blog -- 2.49.1 From 215056863291b204206d9be1375106cf5b0eb5d3 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:50:44 +0000 Subject: [PATCH 38/72] Testing --- .gitea/workflows/build.yaml | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6da7b01..053197b 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,24 +6,24 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - - name: Login to container registry - uses: https://github.com/docker/login-action@v3 - with: - registry: https://git.vanespen.dev - username: ${{ secrets.USERNAME }} - password: ${{ secrets.PASSWORD }} - - name: Check out repository code - uses: actions/checkout@v4 - - name: Set up Docker Buildx - uses: https://github.com/docker/setup-buildx-action@v3 - - name: Build and push - uses: https://github.com/docker/build-push-action@v6 - with: - context: . - push: true - pull: true - no-cache: true - tags: "git.vanespen.dev/evanespen/blog:latest" + # - name: Login to container registry + # uses: https://github.com/docker/login-action@v3 + # with: + # registry: https://git.vanespen.dev + # username: ${{ secrets.USERNAME }} + # password: ${{ secrets.PASSWORD }} + # - name: Check out repository code + # uses: actions/checkout@v4 + # - name: Set up Docker Buildx + # uses: https://github.com/docker/setup-buildx-action@v3 + # - name: Build and push + # uses: https://github.com/docker/build-push-action@v6 + # with: + # context: . + # push: true + # pull: true + # no-cache: true + # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup argocd run: | wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ -- 2.49.1 From 576abba4b06c7e07faf1bf8308076ea1d8b51afc Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:54:27 +0000 Subject: [PATCH 39/72] Testing --- .gitea/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 053197b..3747894 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,7 +26,8 @@ jobs: # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup argocd run: | + export GIT_TOKEN=${{ env.TOKEN }} wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ - && ./argocd-autopilot-linux-amd64 repo bootstrap --git-token ${{ env.TOKEN }} --repo https://git.vanespen.dev/blog + && ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog -- 2.49.1 From 450fc18b1a6e7ef75f81e2d99bf6e9574bb87536 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:56:26 +0000 Subject: [PATCH 40/72] Testing --- .gitea/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 3747894..39a780e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,6 +27,7 @@ jobs: - name: Setup argocd run: | export GIT_TOKEN=${{ env.TOKEN }} + echo $GIT_TOKEN wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ && ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog -- 2.49.1 From eb24f84935da6dfa34237ecb90325356d604a6ce Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:57:23 +0000 Subject: [PATCH 41/72] Testing --- .gitea/workflows/build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 39a780e..a139af8 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,7 +28,7 @@ jobs: run: | export GIT_TOKEN=${{ env.TOKEN }} echo $GIT_TOKEN - wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz \ - && tar xzvf argocd-autopilot-linux-amd64.tar.gz \ - && ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog + wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz + tar xzvf argocd-autopilot-linux-amd64.tar.gz + ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog -- 2.49.1 From 93adb089f439b5d302c11b743262947795f5a581 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 17:58:53 +0000 Subject: [PATCH 42/72] Testing --- .gitea/workflows/build.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index a139af8..9955fb4 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,11 +24,15 @@ jobs: # pull: true # no-cache: true # tags: "git.vanespen.dev/evanespen/blog:latest" - - name: Setup argocd - run: | - export GIT_TOKEN=${{ env.TOKEN }} - echo $GIT_TOKEN - wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz - tar xzvf argocd-autopilot-linux-amd64.tar.gz - ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog + - name: Set token + run: export GIT_TOKEN=${{ env.TOKEN }} + - name: DEBUG + run: echo $GIT_TOKEN + # - name: Setup argocd + # run: | + + # echo $GIT_TOKEN + # # wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz + # # tar xzvf argocd-autopilot-linux-amd64.tar.gz + # # ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog -- 2.49.1 From 0af26607ecac08ef13d7cf79a085b67856befe96 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:00:10 +0000 Subject: [PATCH 43/72] Testing --- .gitea/workflows/build.yaml | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9955fb4..32eddbc 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,15 +24,9 @@ jobs: # pull: true # no-cache: true # tags: "git.vanespen.dev/evanespen/blog:latest" - - name: Set token - run: export GIT_TOKEN=${{ env.TOKEN }} - - name: DEBUG - run: echo $GIT_TOKEN - # - name: Setup argocd - # run: | - - # echo $GIT_TOKEN - # # wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz - # # tar xzvf argocd-autopilot-linux-amd64.tar.gz - # # ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog + - name: Setup argocd + run: | + wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz + tar xzvf argocd-autopilot-linux-amd64.tar.gz + GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog -- 2.49.1 From 8c243d2ebe8a3fc2a7cd918bed905597c14dfadd Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:02:32 +0000 Subject: [PATCH 44/72] Testing --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 32eddbc..62b99c8 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,5 +28,5 @@ jobs: run: | wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz tar xzvf argocd-autopilot-linux-amd64.tar.gz - GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/blog + GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/evanespen/blog.git -- 2.49.1 From 597e2bc1273c550b8a541fb1c6320c4e3b745157 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:04:34 +0000 Subject: [PATCH 45/72] Testing --- .gitea/workflows/build.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 62b99c8..59ee10e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,6 +26,8 @@ jobs: # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup argocd run: | + git config user.name gitea + git config user.email gitea@git.vanespen.dev wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz tar xzvf argocd-autopilot-linux-amd64.tar.gz GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/evanespen/blog.git -- 2.49.1 From 37d848325becdd62330bf21885e584c6d5248340 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:05:51 +0000 Subject: [PATCH 46/72] Testing --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 59ee10e..e11b4ed 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -12,8 +12,8 @@ jobs: # registry: https://git.vanespen.dev # username: ${{ secrets.USERNAME }} # password: ${{ secrets.PASSWORD }} - # - name: Check out repository code - # uses: actions/checkout@v4 + - name: Check out repository code + uses: actions/checkout@v4 # - name: Set up Docker Buildx # uses: https://github.com/docker/setup-buildx-action@v3 # - name: Build and push -- 2.49.1 From daacb9ad9b237203a09513bd08795ab9a829d14d Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:07:44 +0000 Subject: [PATCH 47/72] Testing --- .gitea/workflows/build.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index e11b4ed..9f6cc95 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,8 +26,8 @@ jobs: # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup argocd run: | - git config user.name gitea - git config user.email gitea@git.vanespen.dev + git config --global user.name gitea + git config --global user.email gitea@git.vanespen.dev wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz tar xzvf argocd-autopilot-linux-amd64.tar.gz GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/evanespen/blog.git -- 2.49.1 From 766484a12a6bdd9444ee92f0a90a4a475d379a7c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:25:25 +0000 Subject: [PATCH 48/72] Testing --- .gitea/workflows/build.yaml | 12 +++++------- argo.yaml | 18 ++++++++++++++++++ k8s/deployment.yaml | 10 ++++++++++ 3 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 argo.yaml create mode 100644 k8s/deployment.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 9f6cc95..f4f5254 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -24,11 +24,9 @@ jobs: # pull: true # no-cache: true # tags: "git.vanespen.dev/evanespen/blog:latest" - - name: Setup argocd + - name: Setup Kubectl run: | - git config --global user.name gitea - git config --global user.email gitea@git.vanespen.dev - wget https://github.com/argoproj-labs/argocd-autopilot/releases/download/v0.4.20/argocd-autopilot-linux-amd64.tar.gz - tar xzvf argocd-autopilot-linux-amd64.tar.gz - GIT_TOKEN=${{ secrets.TOKEN }} ./argocd-autopilot-linux-amd64 repo bootstrap --repo https://git.vanespen.dev/evanespen/blog.git - + mkdir ~/.kube && echo ${{ secrets.KUBECONFIG }} > ~/.kube/config + apt update && apt install -y kubectl + kubectl apply -f argo.yaml + diff --git a/argo.yaml b/argo.yaml new file mode 100644 index 0000000..6852366 --- /dev/null +++ b/argo.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: blog-argo + namespace: argocd +spec: + project: default + source: + repoURL: "https://git.vanespen.dev/evanespen/blog" + path: "k8s" + targetRevision: developer + destination: + server: "https://kubernetes.default.svc" + namespace: argocd + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml new file mode 100644 index 0000000..a298252 --- /dev/null +++ b/k8s/deployment.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Pod +metadata: + name: blog-pod +spec: + containers: + - name: blog-container + image: git.vanespen.dev/evanespen/blog:latest + ports: + - containerPort: 80 -- 2.49.1 From be2aec45d763e1d3034d20c88f38da68f9e8d6e8 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:28:41 +0000 Subject: [PATCH 49/72] Testing --- .gitea/workflows/build.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f4f5254..f330458 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,7 +26,9 @@ jobs: # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup Kubectl run: | - mkdir ~/.kube && echo ${{ secrets.KUBECONFIG }} > ~/.kube/config + mkdir ~/.kube + echo > ~/.kube/config << EOF + ${{ secrets.KUBECONFIG }} + EOF apt update && apt install -y kubectl kubectl apply -f argo.yaml - -- 2.49.1 From da76380ec13bfedc998e9a75740f3d39e2b09e3d Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:34:26 +0000 Subject: [PATCH 50/72] Testing --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f330458..0a637aa 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -31,4 +31,4 @@ jobs: ${{ secrets.KUBECONFIG }} EOF apt update && apt install -y kubectl - kubectl apply -f argo.yaml + /usr/bin/kubectl apply -f argo.yaml -- 2.49.1 From ab9876b81af41b82621648008f5faba1890147f0 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:38:11 +0000 Subject: [PATCH 51/72] Testing --- .gitea/workflows/build.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 0a637aa..d32d43c 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -30,5 +30,6 @@ jobs: echo > ~/.kube/config << EOF ${{ secrets.KUBECONFIG }} EOF - apt update && apt install -y kubectl + apt update + apt install -y kubectl /usr/bin/kubectl apply -f argo.yaml -- 2.49.1 From ab3f36ee41c6c4e5a5789ad4fe96f8ed52b90880 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:45:59 +0000 Subject: [PATCH 52/72] Testing --- .gitea/workflows/build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d32d43c..7ca37b1 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -30,6 +30,7 @@ jobs: echo > ~/.kube/config << EOF ${{ secrets.KUBECONFIG }} EOF - apt update - apt install -y kubectl - /usr/bin/kubectl apply -f argo.yaml + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + kubectl version --client + /usr/local/bin/kubectl apply -f argo.yaml -- 2.49.1 From 4f7a7c744546676699bdb8b8e91cf8093b422710 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:48:06 +0000 Subject: [PATCH 53/72] Testing --- .gitea/workflows/build.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7ca37b1..363a302 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -32,5 +32,4 @@ jobs: EOF curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - kubectl version --client - /usr/local/bin/kubectl apply -f argo.yaml + /usr/local/bin/kubectl apply --validate=false -f argo.yaml -- 2.49.1 From 0ebdeb5cc2a0015af8d3ba62d57909631bf44a20 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:49:55 +0000 Subject: [PATCH 54/72] Testing --- .gitea/workflows/build.yaml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 363a302..251e86f 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -30,6 +30,7 @@ jobs: echo > ~/.kube/config << EOF ${{ secrets.KUBECONFIG }} EOF - curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - /usr/local/bin/kubectl apply --validate=false -f argo.yaml + cat ~/.kube/config + # curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + # install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + # /usr/local/bin/kubectl apply --validate=false -f argo.yaml -- 2.49.1 From 6284facd458fcbda18eef691442382db001b520c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:51:41 +0000 Subject: [PATCH 55/72] Testing --- .gitea/workflows/build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 251e86f..546ee9d 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,9 +27,7 @@ jobs: - name: Setup Kubectl run: | mkdir ~/.kube - echo > ~/.kube/config << EOF - ${{ secrets.KUBECONFIG }} - EOF + echo "$KUBECONFIG" > ~/.kube/config cat ~/.kube/config # curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" # install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -- 2.49.1 From 37cd25db5681cfe4d9ccac3c4ecebbbdef268ed3 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:52:48 +0000 Subject: [PATCH 56/72] Testing --- .gitea/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 546ee9d..1952503 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,6 +26,7 @@ jobs: # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup Kubectl run: | + env mkdir ~/.kube echo "$KUBECONFIG" > ~/.kube/config cat ~/.kube/config -- 2.49.1 From 5fb92608d2d50a799632c7b231871ab2ddddd2bd Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:55:08 +0000 Subject: [PATCH 57/72] Testing --- .gitea/workflows/build.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1952503..7411634 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,6 +28,7 @@ jobs: run: | env mkdir ~/.kube + export KUBECONFIG=${{ secrets.KUBECONFIG }} echo "$KUBECONFIG" > ~/.kube/config cat ~/.kube/config # curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -- 2.49.1 From e86e7287be34263f1d3592981b2152fb37b7a2d0 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:55:18 +0000 Subject: [PATCH 58/72] Testing --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 7411634..d675c3e 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -26,9 +26,9 @@ jobs: # tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup Kubectl run: | - env mkdir ~/.kube export KUBECONFIG=${{ secrets.KUBECONFIG }} + env echo "$KUBECONFIG" > ~/.kube/config cat ~/.kube/config # curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" -- 2.49.1 From 4f49fcfa48e34730096ce3d0834dfb3664cbfab9 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:56:03 +0000 Subject: [PATCH 59/72] Testing --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d675c3e..d44e555 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,7 +27,7 @@ jobs: - name: Setup Kubectl run: | mkdir ~/.kube - export KUBECONFIG=${{ secrets.KUBECONFIG }} + export KUBECONFIG='${{ secrets.KUBECONFIG }}' env echo "$KUBECONFIG" > ~/.kube/config cat ~/.kube/config -- 2.49.1 From d05ba9903cd01514cb03f5b0533aeaf01019ddf3 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:56:52 +0000 Subject: [PATCH 60/72] Testing --- .gitea/workflows/build.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d44e555..f98652a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -27,9 +27,7 @@ jobs: - name: Setup Kubectl run: | mkdir ~/.kube - export KUBECONFIG='${{ secrets.KUBECONFIG }}' - env - echo "$KUBECONFIG" > ~/.kube/config + echo '${{ secrets.KUBECONFIG }}' > ~/.kube/config cat ~/.kube/config # curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" # install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl -- 2.49.1 From 1e1f25f3ff36651815466d4b485f44ab1c1cefd8 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 18:57:39 +0000 Subject: [PATCH 61/72] Testing --- .gitea/workflows/build.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f98652a..dd8a363 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,7 +28,6 @@ jobs: run: | mkdir ~/.kube echo '${{ secrets.KUBECONFIG }}' > ~/.kube/config - cat ~/.kube/config - # curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" - # install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - # /usr/local/bin/kubectl apply --validate=false -f argo.yaml + curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" + install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl + /usr/local/bin/kubectl apply --validate=false -f argo.yaml -- 2.49.1 From 374909497a747654b4de7565eb319fb41462ee1c Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:03:43 +0000 Subject: [PATCH 62/72] Testing --- .gitea/workflows/build.yaml | 32 ++++++++++++++++---------------- argo.yaml | 1 - 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index dd8a363..180cc82 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,24 +6,24 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: - # - name: Login to container registry - # uses: https://github.com/docker/login-action@v3 - # with: - # registry: https://git.vanespen.dev - # username: ${{ secrets.USERNAME }} - # password: ${{ secrets.PASSWORD }} + - name: Login to container registry + uses: https://github.com/docker/login-action@v3 + with: + registry: https://git.vanespen.dev + username: ${{ secrets.USERNAME }} + password: ${{ secrets.PASSWORD }} - name: Check out repository code uses: actions/checkout@v4 - # - name: Set up Docker Buildx - # uses: https://github.com/docker/setup-buildx-action@v3 - # - name: Build and push - # uses: https://github.com/docker/build-push-action@v6 - # with: - # context: . - # push: true - # pull: true - # no-cache: true - # tags: "git.vanespen.dev/evanespen/blog:latest" + - name: Set up Docker Buildx + uses: https://github.com/docker/setup-buildx-action@v3 + - name: Build and push + uses: https://github.com/docker/build-push-action@v6 + with: + context: . + push: true + pull: true + no-cache: true + tags: "git.vanespen.dev/evanespen/blog:latest" - name: Setup Kubectl run: | mkdir ~/.kube diff --git a/argo.yaml b/argo.yaml index 6852366..75f5eb3 100644 --- a/argo.yaml +++ b/argo.yaml @@ -8,7 +8,6 @@ spec: source: repoURL: "https://git.vanespen.dev/evanespen/blog" path: "k8s" - targetRevision: developer destination: server: "https://kubernetes.default.svc" namespace: argocd -- 2.49.1 From ce09964bc165135e1a9c0e5975b2c61ace1d6ea0 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:11:04 +0000 Subject: [PATCH 63/72] Testing --- argo.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/argo.yaml b/argo.yaml index 75f5eb3..75325cd 100644 --- a/argo.yaml +++ b/argo.yaml @@ -4,10 +4,11 @@ metadata: name: blog-argo namespace: argocd spec: - project: default + project: blog source: repoURL: "https://git.vanespen.dev/evanespen/blog" - path: "k8s" + targetRevision: HEAD + # path: "k8s" destination: server: "https://kubernetes.default.svc" namespace: argocd -- 2.49.1 From bea4784dc60729f67727c9e4550dc191faa8b985 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:30:46 +0000 Subject: [PATCH 64/72] Testing --- argo.yaml | 31 ++++++++++++++++++++++++++++--- k8s/deploy.yaml | 42 ++++++++++++++++++++++++++++++++++++++++++ k8s/deployment.yaml | 10 ---------- 3 files changed, 70 insertions(+), 13 deletions(-) create mode 100644 k8s/deploy.yaml delete mode 100644 k8s/deployment.yaml diff --git a/argo.yaml b/argo.yaml index 75325cd..16a8a5d 100644 --- a/argo.yaml +++ b/argo.yaml @@ -1,3 +1,26 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: blog + namespace: argocd +spec: + description: Project for the blog application + sourceRepos: + - https://git.vanespen.dev/evanespen/blog + destinations: + - namespace: blog + server: https://kubernetes.default.svc + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceWhitelist: + - group: "*" + kind: "*" + syncWindows: [] + roles: [] + +--- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: @@ -7,12 +30,14 @@ spec: project: blog source: repoURL: "https://git.vanespen.dev/evanespen/blog" - targetRevision: HEAD - # path: "k8s" + targetRevision: testing-ci + path: "k8s" destination: server: "https://kubernetes.default.svc" - namespace: argocd + namespace: blog syncPolicy: automated: prune: true selfHeal: true + syncOptions: + - CreateNamespace=true diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml new file mode 100644 index 0000000..d7fec39 --- /dev/null +++ b/k8s/deploy.yaml @@ -0,0 +1,42 @@ +--- +apiVersion: v1 +kind: Pod +metadata: + name: blog-pod +spec: + containers: + - name: blog-container + image: git.vanespen.dev/evanespen/blog:latest + ports: + - containerPort: 80 + +--- +apiVersion: v1 +kind: Service +metadata: + name: blog-service +spec: + selector: + app: blog-pod + ports: + - protocol: TCP + port: 80 + targetPort: 80 + type: ClusterIP + +--- +apiVersion: traefik.containo.us/v1alpha1 +kind: IngressRoute +metadata: + name: blog-ingressroute +spec: + entryPoints: + - websecure + routes: + - match: Host(`vanespen.dev`) + kind: Rule + services: + - name: blog-service + port: 80 + tls: + certResolver: letsencrypt_dns diff --git a/k8s/deployment.yaml b/k8s/deployment.yaml deleted file mode 100644 index a298252..0000000 --- a/k8s/deployment.yaml +++ /dev/null @@ -1,10 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: blog-pod -spec: - containers: - - name: blog-container - image: git.vanespen.dev/evanespen/blog:latest - ports: - - containerPort: 80 -- 2.49.1 From 00da78dd8777bbf3a9cf3fcebc92363db0778bfe Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:34:46 +0000 Subject: [PATCH 65/72] Testing --- k8s/deploy.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index d7fec39..3fde148 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -3,6 +3,7 @@ apiVersion: v1 kind: Pod metadata: name: blog-pod + namespace: blog spec: containers: - name: blog-container @@ -15,6 +16,7 @@ apiVersion: v1 kind: Service metadata: name: blog-service + namespace: blog spec: selector: app: blog-pod @@ -29,6 +31,7 @@ apiVersion: traefik.containo.us/v1alpha1 kind: IngressRoute metadata: name: blog-ingressroute + namespace: blog spec: entryPoints: - websecure -- 2.49.1 From 604633fe7fd39204ea1ffbb8e192f4ba0a751d5f Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:40:15 +0000 Subject: [PATCH 66/72] Testing --- k8s/deploy.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index 3fde148..ea9b2f1 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -27,7 +27,7 @@ spec: type: ClusterIP --- -apiVersion: traefik.containo.us/v1alpha1 +apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: blog-ingressroute -- 2.49.1 From e2eeafacc817e1d151c6e4746840947fd38fd9e8 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:50:39 +0000 Subject: [PATCH 67/72] Testing --- k8s/deploy.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/k8s/deploy.yaml b/k8s/deploy.yaml index ea9b2f1..b2bd37e 100644 --- a/k8s/deploy.yaml +++ b/k8s/deploy.yaml @@ -4,6 +4,8 @@ kind: Pod metadata: name: blog-pod namespace: blog + labels: + app: blog-pod spec: containers: - name: blog-container -- 2.49.1 From c696efbac3b66dd0ea5862b803b2872a670c6a76 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 19:56:09 +0000 Subject: [PATCH 68/72] DONE --- .gitea/workflows/build.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 180cc82..f9a7ff5 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,9 +1,9 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +name: Build and deploy +run-name: 🚀 on: [push] jobs: - Explore-Gitea-Actions: + Build: runs-on: ubuntu-latest steps: - name: Login to container registry -- 2.49.1 From ad55d7018de461791c19138c3293515e36a2e9fb Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 20:06:28 +0000 Subject: [PATCH 69/72] DONE --- .gitea/workflows/build.yaml | 3 ++- argo.yaml | 43 ------------------------------------- 2 files changed, 2 insertions(+), 44 deletions(-) delete mode 100644 argo.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index f9a7ff5..6ee56c2 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -30,4 +30,5 @@ jobs: echo '${{ secrets.KUBECONFIG }}' > ~/.kube/config curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - /usr/local/bin/kubectl apply --validate=false -f argo.yaml + sed -i "s/COMMIT_REF/$GITEA_SHA/g" argo.template.yaml + /usr/local/bin/kubectl apply --validate=false -f argo.template.yaml diff --git a/argo.yaml b/argo.yaml deleted file mode 100644 index 16a8a5d..0000000 --- a/argo.yaml +++ /dev/null @@ -1,43 +0,0 @@ ---- -apiVersion: argoproj.io/v1alpha1 -kind: AppProject -metadata: - name: blog - namespace: argocd -spec: - description: Project for the blog application - sourceRepos: - - https://git.vanespen.dev/evanespen/blog - destinations: - - namespace: blog - server: https://kubernetes.default.svc - clusterResourceWhitelist: - - group: "*" - kind: "*" - namespaceResourceWhitelist: - - group: "*" - kind: "*" - syncWindows: [] - roles: [] - ---- -apiVersion: argoproj.io/v1alpha1 -kind: Application -metadata: - name: blog-argo - namespace: argocd -spec: - project: blog - source: - repoURL: "https://git.vanespen.dev/evanespen/blog" - targetRevision: testing-ci - path: "k8s" - destination: - server: "https://kubernetes.default.svc" - namespace: blog - syncPolicy: - automated: - prune: true - selfHeal: true - syncOptions: - - CreateNamespace=true -- 2.49.1 From 54ffd24610beac698d7977995bc9857baf9dcc77 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 20:08:45 +0000 Subject: [PATCH 70/72] DONE --- argo.template.yaml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 argo.template.yaml diff --git a/argo.template.yaml b/argo.template.yaml new file mode 100644 index 0000000..8b0d4c8 --- /dev/null +++ b/argo.template.yaml @@ -0,0 +1,43 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: blog + namespace: argocd +spec: + description: Project for the blog application + sourceRepos: + - https://git.vanespen.dev/evanespen/blog + destinations: + - namespace: blog + server: https://kubernetes.default.svc + clusterResourceWhitelist: + - group: "*" + kind: "*" + namespaceResourceWhitelist: + - group: "*" + kind: "*" + syncWindows: [] + roles: [] + +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: blog-argo + namespace: argocd +spec: + project: blog + source: + repoURL: "https://git.vanespen.dev/evanespen/blog" + targetRevision: COMMIT_REF + path: "k8s" + destination: + server: "https://kubernetes.default.svc" + namespace: blog + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true -- 2.49.1 From 7968ceed339983ed63447eccc25bda75ae5df253 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 20:20:44 +0000 Subject: [PATCH 71/72] DONE --- .gitea/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 6ee56c2..accbbe3 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -30,5 +30,5 @@ jobs: echo '${{ secrets.KUBECONFIG }}' > ~/.kube/config curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - sed -i "s/COMMIT_REF/$GITEA_SHA/g" argo.template.yaml + sed -i "s/COMMIT_REF/${{ env.GITEA_SHA }}/g" argo.template.yaml /usr/local/bin/kubectl apply --validate=false -f argo.template.yaml -- 2.49.1 From dd1b3accb4cbdbd3b38fa2f40802484136b00320 Mon Sep 17 00:00:00 2001 From: Evrard Van Espen Date: Thu, 20 Nov 2025 20:24:33 +0000 Subject: [PATCH 72/72] DONE --- .gitea/workflows/build.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index accbbe3..c2473d9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -28,7 +28,9 @@ jobs: run: | mkdir ~/.kube echo '${{ secrets.KUBECONFIG }}' > ~/.kube/config + export COMMIT_REF=$(git rev-parse HEAD) + echo $COMMIT_REF curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl - sed -i "s/COMMIT_REF/${{ env.GITEA_SHA }}/g" argo.template.yaml + sed -i "s/COMMIT_REF/$COMMIT_REF/g" argo.template.yaml /usr/local/bin/kubectl apply --validate=false -f argo.template.yaml -- 2.49.1