From 63e385404b418fae1cf22e05f55401ebe5406057 Mon Sep 17 00:00:00 2001 From: ebner Date: Tue, 16 Dec 2025 15:42:06 +0100 Subject: [PATCH] initial commit --- .gitea/workflows/build_and_push.yml | 28 ++++++++++++++++++++++++++++ Dockerfile | 5 +++++ Readme.md | 3 +++ 3 files changed, 36 insertions(+) create mode 100644 .gitea/workflows/build_and_push.yml create mode 100644 Dockerfile create mode 100644 Readme.md diff --git a/.gitea/workflows/build_and_push.yml b/.gitea/workflows/build_and_push.yml new file mode 100644 index 0000000..b00ff3c --- /dev/null +++ b/.gitea/workflows/build_and_push.yml @@ -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..5fb936d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM alpine:latest + +RUN apk --no-cache add git nodejs + +RUN rm -rf /var/cache/apk/* diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..ec331bb --- /dev/null +++ b/Readme.md @@ -0,0 +1,3 @@ +# Overview + +Minimal Docker image for Gitea CI runner based on Alpine Linux.