From d4b31397edf83cfc87d7bd59a49af99537abd58c Mon Sep 17 00:00:00 2001 From: ebner Date: Wed, 20 May 2026 14:38:43 +0200 Subject: [PATCH] Add .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/build.yaml diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..b0638b6 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,30 @@ +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 + with: + repository: "https://github.com/simongregorebner/conda-cache.git" + + - 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