From 81c3a72415df25b8b781faf40a13ced6915f5193 Mon Sep 17 00:00:00 2001 From: ebner Date: Thu, 5 Jun 2025 13:55:48 +0200 Subject: [PATCH] add workflow - define image --- .gitea/workflows/build_push.yaml | 28 ++++++++++++++++++++++++++++ Dockerfile | 13 +++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 .gitea/workflows/build_push.yaml diff --git a/.gitea/workflows/build_push.yaml b/.gitea/workflows/build_push.yaml new file mode 100644 index 0000000..b00ff3c --- /dev/null +++ b/.gitea/workflows/build_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 index e69de29..1fd39a2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -0,0 +1,13 @@ +FROM alpine:3.22 + +WORKDIR /tmp + +RUN apk list -I && apk --no-cache add \ + libatomic readline readline-dev libxml2 libxml2-dev \ + ncurses-terminfo-base ncurses-terminfo \ + libxslt libxslt-dev zlib-dev zlib \ + ruby ruby-dev yaml yaml-dev \ + libffi-dev build-base git nodejs \ + && gem env \ + && gem install etc \ + && gem install bundler