From 952a1075bf66d2f4d01dbaf95aa79281eb4728e9 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 14:49:32 +0100 Subject: [PATCH 01/16] chore: add ci --- .gitea/workflows/ci.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .gitea/workflows/ci.yaml diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml new file mode 100644 index 0000000..0b18b26 --- /dev/null +++ b/.gitea/workflows/ci.yaml @@ -0,0 +1,27 @@ +name: Container build +on: [ push ] + +jobs: + container-build: + runs-on: ubuntu-latest + if: gitea.ref == 'refs/heads/main' + steps: + - name: Clone repo + uses: actions/checkout@v4 + - name: Set up BuildX + uses: docker/setup-buildx-action@v2 + endpoint: 'unix:///var/run/user/1000/podman/podman.sock' + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + file: ./Containerfile + platforms: | + linux/amd64 +# linux/arm64 + push: false +# tags: | +# ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:latest +# ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} +# + -- 2.49.1 From 8bca3eb2feb86d6add33e6c356ea79966b9f4136 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 15:11:23 +0100 Subject: [PATCH 02/16] fe -- 2.49.1 From 9895782b0ad7a59e7a305e7fe234e8172475c191 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 15:12:00 +0100 Subject: [PATCH 03/16] fe --- .gitea/workflows/ci.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 0b18b26..edb5ddf 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -10,7 +10,8 @@ jobs: uses: actions/checkout@v4 - name: Set up BuildX uses: docker/setup-buildx-action@v2 - endpoint: 'unix:///var/run/user/1000/podman/podman.sock' + with: + endpoint: 'unix:///var/run/user/1000/podman/podman.sock' - name: Build and push uses: docker/build-push-action@v4 with: -- 2.49.1 From b2660c125c569993bdfd658d2f6e9ef373dffcac Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 15:27:31 +0100 Subject: [PATCH 04/16] ci: try /var/run/docker.sock --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index edb5ddf..7b8a493 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,7 +11,7 @@ jobs: - name: Set up BuildX uses: docker/setup-buildx-action@v2 with: - endpoint: 'unix:///var/run/user/1000/podman/podman.sock' + endpoint: 'unix:///var/run/docker.sock' - name: Build and push uses: docker/build-push-action@v4 with: -- 2.49.1 From 69744cda5fcab302147465b5b36dcb0fa1ae4f6d Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 15:33:42 +0100 Subject: [PATCH 05/16] ci: add push --- .gitea/workflows/ci.yaml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 7b8a493..6c1a2a1 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,6 +12,12 @@ jobs: uses: docker/setup-buildx-action@v2 with: endpoint: 'unix:///var/run/docker.sock' + - name: Login to Registry + uses: docker/login-action@v3 + with: + registry: git.plabble.org + username: ${{ secrets.REGISTRY_USERNAME }} + password: ${{ secrets.REGISTRY_TOKEN }} - name: Build and push uses: docker/build-push-action@v4 with: @@ -20,8 +26,9 @@ jobs: platforms: | linux/amd64 # linux/arm64 - push: false -# tags: | + push: true + tags: | + git.plabble.org/job79/pastabble:latest # ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:latest # ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} # -- 2.49.1 From c2c452510b8d8877b72f76333586e09317d04d79 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 15:43:09 +0100 Subject: [PATCH 06/16] ci: add QEMU --- .gitea/workflows/ci.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 6c1a2a1..a4fc200 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,6 +12,8 @@ jobs: uses: docker/setup-buildx-action@v2 with: endpoint: 'unix:///var/run/docker.sock' + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - name: Login to Registry uses: docker/login-action@v3 with: @@ -25,11 +27,7 @@ jobs: file: ./Containerfile platforms: | linux/amd64 -# linux/arm64 + linux/arm64 push: true tags: | git.plabble.org/job79/pastabble:latest -# ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:latest -# ${{ env.DOCKER_USERNAME }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }} -# - -- 2.49.1 From 280957ca226a2ffce1cee30038d97f083f92a59c Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 16:10:05 +0100 Subject: [PATCH 07/16] ci: disable QEMU --- .gitea/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a4fc200..6cd19d6 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,8 +12,8 @@ jobs: uses: docker/setup-buildx-action@v2 with: endpoint: 'unix:///var/run/docker.sock' - - name: Set up QEMU - uses: docker/setup-qemu-action@v2 +# - name: Set up QEMU +# uses: docker/setup-qemu-action@v2 - name: Login to Registry uses: docker/login-action@v3 with: -- 2.49.1 From c56c6c39edbde25341f9db2234d5513e8c621782 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 16:52:15 +0100 Subject: [PATCH 08/16] revert: ci: disable QEMU This reverts commit 280957ca226a2ffce1cee30038d97f083f92a59c. --- .gitea/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 6cd19d6..a4fc200 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -12,8 +12,8 @@ jobs: uses: docker/setup-buildx-action@v2 with: endpoint: 'unix:///var/run/docker.sock' -# - name: Set up QEMU -# uses: docker/setup-qemu-action@v2 + - name: Set up QEMU + uses: docker/setup-qemu-action@v2 - name: Login to Registry uses: docker/login-action@v3 with: -- 2.49.1 From 3bbf1a2bfa8bf1ac25207d14517e12fc35a5b3ba Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 17:29:30 +0100 Subject: [PATCH 09/16] ci: try version 1 --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index a4fc200..af297e6 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: with: endpoint: 'unix:///var/run/docker.sock' - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + uses: docker/setup-qemu-action@v1 - name: Login to Registry uses: docker/login-action@v3 with: -- 2.49.1 From 9508911c19ecf82bbb6af54bf95af02b86cbfc1d Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 17:32:35 +0100 Subject: [PATCH 10/16] ci: use own custom QEMU action --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index af297e6..3425f02 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: with: endpoint: 'unix:///var/run/docker.sock' - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: Job79/setup-qemu-action@master - name: Login to Registry uses: docker/login-action@v3 with: -- 2.49.1 From 3ea33fc34e724bae70436c3fe4fed67fc3b0a3a7 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 17:47:13 +0100 Subject: [PATCH 11/16] ci: force newest version of QEMU --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3425f02..9cea69a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: with: endpoint: 'unix:///var/run/docker.sock' - name: Set up QEMU - uses: Job79/setup-qemu-action@master + uses: Job79/setup-qemu-action@d05e0cb72b870c18f7d06bd2bec364e3533816cd - name: Login to Registry uses: docker/login-action@v3 with: -- 2.49.1 From 5d6dc6f50e8e10f530a9f6b93d2071ea8162d007 Mon Sep 17 00:00:00 2001 From: Job79 Date: Fri, 9 Feb 2024 20:34:33 +0100 Subject: [PATCH 12/16] ci: use master branch --- .gitea/workflows/ci.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 9cea69a..3425f02 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -13,7 +13,7 @@ jobs: with: endpoint: 'unix:///var/run/docker.sock' - name: Set up QEMU - uses: Job79/setup-qemu-action@d05e0cb72b870c18f7d06bd2bec364e3533816cd + uses: Job79/setup-qemu-action@master - name: Login to Registry uses: docker/login-action@v3 with: -- 2.49.1 From ef04e95c4e2eba08e065b2e32b151454663fadbb Mon Sep 17 00:00:00 2001 From: Job79 Date: Thu, 30 May 2024 17:01:23 +0200 Subject: [PATCH 13/16] chore: update alpine version --- Containerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Containerfile b/Containerfile index 81fe34c..7047b30 100644 --- a/Containerfile +++ b/Containerfile @@ -1,11 +1,11 @@ -FROM node:21-alpine3.19 AS frontend-builder +FROM node:22-alpine3.20 AS frontend-builder WORKDIR /build RUN corepack enable COPY pastabble-frontend/ . RUN pnpm i && pnpm build -FROM rust:alpine3.19 AS builder +FROM rust:alpine3.20 AS builder WORKDIR /build RUN apk add --no-cache musl-dev @@ -18,7 +18,7 @@ RUN case "$(apk --print-arch)" in \ mv ./target/aarch64-unknown-linux-musl /release ;; \ esac -FROM alpine:3.19 +FROM alpine:3.20 WORKDIR /app RUN mkdir wwwroot data && \ -- 2.49.1 From 76b3af3e5550d299f225a01352638d4f2b2aded8 Mon Sep 17 00:00:00 2001 From: Job79 Date: Thu, 30 May 2024 17:01:47 +0200 Subject: [PATCH 14/16] ci: do not build amd64 version --- .gitea/workflows/ci.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 3425f02..dfd8ef5 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -26,7 +26,6 @@ jobs: context: . file: ./Containerfile platforms: | - linux/amd64 linux/arm64 push: true tags: | -- 2.49.1 From d23ea2eea150f3f0713765ce5b201890b9727e80 Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 2 Jun 2025 18:32:48 +0000 Subject: [PATCH 15/16] ci: update container build script --- .gitea/workflows/ci.yaml | 42 +++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index dfd8ef5..ed3e5e8 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,32 +1,26 @@ -name: Container build -on: [ push ] +name: Build container +on: + push: + schedule: + - cron: '0 16 * * FRI' jobs: - container-build: - runs-on: ubuntu-latest - if: gitea.ref == 'refs/heads/main' + build: + runs-on: container-builder steps: - - name: Clone repo - uses: actions/checkout@v4 - - name: Set up BuildX - uses: docker/setup-buildx-action@v2 + - uses: actions/checkout@v4 + - name: Build + uses: redhat-actions/buildah-build@v2 with: - endpoint: 'unix:///var/run/docker.sock' - - name: Set up QEMU - uses: Job79/setup-qemu-action@master - - name: Login to Registry - uses: docker/login-action@v3 + image: ${{ github.repository_owner }}/${{ github.event.repository.name }} + tags: latest + containerfiles: | + ./Containerfile + - name: Push + uses: redhat-actions/push-to-registry@v2 with: + image: ${{ github.repository_owner }}/${{ github.event.repository.name }} + tags: latest registry: git.plabble.org username: ${{ secrets.REGISTRY_USERNAME }} password: ${{ secrets.REGISTRY_TOKEN }} - - name: Build and push - uses: docker/build-push-action@v4 - with: - context: . - file: ./Containerfile - platforms: | - linux/arm64 - push: true - tags: | - git.plabble.org/job79/pastabble:latest -- 2.49.1 From 450a8413858353120e64025dd5a956aaf7b60fde Mon Sep 17 00:00:00 2001 From: Job Date: Mon, 2 Jun 2025 18:33:07 +0000 Subject: [PATCH 16/16] ci: remove schedule --- .gitea/workflows/ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index ed3e5e8..ccfd4f2 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,8 +1,6 @@ name: Build container on: push: - schedule: - - cron: '0 16 * * FRI' jobs: build: -- 2.49.1