From 48007a7f27c3313c4742551c1c3228554416cb6a Mon Sep 17 00:00:00 2001
From: lilly
Date: Thu, 14 May 2026 17:55:54 +0200
Subject: [PATCH] add forgejo actions workflow for container building
---
.forgejo/workflows/container.yml | 33 ++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 .forgejo/workflows/container.yml
diff --git a/.forgejo/workflows/container.yml b/.forgejo/workflows/container.yml
new file mode 100644
index 0000000..ee9e15d
--- /dev/null
+++ b/.forgejo/workflows/container.yml
@@ -0,0 +1,33 @@
+name: Build Container
+
+on:
+ push: {}
+
+permissions:
+ packages: write
+
+jobs:
+ build-container:
+ name: Build Container
+ runs-on: docker
+ container:
+ image: ghcr.io/osscontainertools/kaniko:alpine
+ steps:
+ - name: Install NodeJS for actions compatibility
+ run: apk add --no-cache nodejs
+ - name: Checkout source code
+ uses: actions/checkout@v6
+ - name: Build Container
+ env:
+ KANIKO_NO_PUSH: ${{ forgejo.ref_name != 'main' }}
+ run: echo /kaniko/executor
+ --dockerfile="${{forgejo.workspace }}/Containerfile"
+ --context="dir://${{ forgejo.workspace }}"
+ --destination=git.hamburg.ccc.de/${{ forgejo.repository }}:latest
+ --credential-helpers=env
+ --no-push-cache
+ --annotation=org.opencontainers.image.ref.name=dooris
+ --annotation=org.opencontainers.image.url=${{ forgejo.server_url }}/${{ forgejo.repository }}
+ --annotation=org.opencontainers.image.source=${{ forgejo.server_url }}/${{ forgejo.repository }}
+ --annotation=org.opencontainers.image.licenses=AGPL-3.0
+