From ca365359da24843c6fce082f6d1fbe002f0d60e4 Mon Sep 17 00:00:00 2001 From: ebner Date: Mon, 13 Jul 2026 13:11:24 +0200 Subject: [PATCH] initial commit --- .gitea/workflows/build_and_push.yaml | 28 ++++++++++++++++++++++++++++ Dockerfile | 4 ++++ 2 files changed, 32 insertions(+) create mode 100644 .gitea/workflows/build_and_push.yaml create mode 100644 Dockerfile diff --git a/.gitea/workflows/build_and_push.yaml b/.gitea/workflows/build_and_push.yaml new file mode 100644 index 0000000..b00ff3c --- /dev/null +++ b/.gitea/workflows/build_and_push.yaml @@ -0,0 +1,28 @@ +name: Build and Publish Docker Image + +on: + push: + branches: + - main + workflow_dispatch: + +jobs: + docker: + runs-on: ubuntu-latest-intranet + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Login to Docker Registry + uses: docker/login-action@v3 + with: + registry: gitea.psi.ch + username: ${{ github.repository_owner }} + password: ${{ secrets.REGISTRY_TOKEN }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + push: true + tags: gitea.psi.ch/${{ github.repository }}:latest diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c3aa3bb --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM gitea.psi.ch/images/rhel9 + +RUN dnf install -y git nodejs rsync curl \ + && dnf clean all