From 9fa8f7ac03e8fa577677e3a7f33f506effb486cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Sivertsson?= Date: Sat, 4 Jul 2026 12:53:11 +0200 Subject: [PATCH] init --- .gitea/workflows/build.yml | 34 ++++++++++++++++++++++++++++++++++ Dockerfile | 23 +++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 .gitea/workflows/build.yml create mode 100644 Dockerfile diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..31a2cfa --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,34 @@ +name: Build Docker Image + +env: + GITEA_DOMAIN: gitea.mscloud.site + RESULT_IMAGE_NAME: hyperion.ng + +on: + push: + tags: + - "*" + +jobs: + docker: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build Setup + uses: docker/setup-buildx-action@v3 + + - name: Login + uses: docker/login-action@v3 + with: + registry: ${{ env.GITEA_DOMAIN }} + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }} + + - name: Build and Push + uses: docker/build-push-action@v6 + with: + push: true + tags: ${{ env.GITEA_DOMAIN }}/${{ env.RESULT_IMAGE_NAME }}:${{ gitea.ref_name }} diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..fd28f5f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,23 @@ +FROM debian:bookworm + +RUN apt-get update && apt-get install -y \ + curl \ + gnupg + +RUN curl -fsSL https://releases.hyperion-project.org/hyperion.pub.key | gpg --dearmor \ + -o /usr/share/keyrings/hyperion.pub.gpg + +RUN echo "deb [arch=amd64 signed-by=/usr/share/keyrings/hyperion.pub.gpg] https://apt.releases.hyperion-project.org/ bookworm main" \ + > /etc/apt/sources.list.d/hyperion.list + +RUN apt-get update +RUN apt-get install -y hyperion +RUN apt-get clean + +ENV UID=1000 +ENV GID=1000 + +RUN groupadd -f hyperion +RUN useradd -r -s /bin/bash -g hyperion hyperion + +ENTRYPOINT ["/usr/bin/hyperiond", "-u", "/data"]