@@ -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 }}
|
||||||
+23
@@ -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"]
|
||||||
Reference in New Issue
Block a user