From 952a1075bf66d2f4d01dbaf95aa79281eb4728e9 Mon Sep 17 00:00:00 2001
From: Job79 <job@plabble.org>
Date: Fri, 9 Feb 2024 14:49:32 +0100
Subject: [PATCH] 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 }}       
+#
+