From d9fad1c0c1b30198d556449ecd056294bcbeeeb4 Mon Sep 17 00:00:00 2001 From: simon_admin Date: Sun, 10 May 2026 12:59:50 +0000 Subject: [PATCH] Update .gitea/workflows/build.yaml --- .gitea/workflows/build.yaml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index d351d08..ac3613a 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -8,23 +8,22 @@ on: jobs: build: - runs-on: ubuntu-22.04 + runs-on: ubuntu-latest steps: - - name: Code auschecken + - name: 1. Code auschecken uses: actions/checkout@v3 - - name: Login in die Gitea Registry - uses: docker/login-action@v2 - with: - # Wir nutzen die interne Service-URL (Port 3000 für Gitea HTTP) - registry: gitea-http.gitea.svc.cluster.local:3000 - username: ${{ github.actor }} - password: ${{ secrets.GITHUB_TOKEN }} + - name: 2. Docker Image bauen + run: | + # Baut das Image und gibt ihm sofort den internen Namen für Gitea + docker build -t gitea-http.gitea.svc.cluster.local:3000/simon_admin/homepage:latest . - - name: Docker Image bauen und pushen - uses: docker/build-push-action@v4 - with: - context: . - push: true - # Auch beim Taggen nutzen wir die interne URL - tags: gitea-http.gitea.svc.cluster.local:3000/simon_admin/homepage:latest \ No newline at end of file + - name: 3. Login in die interne Gitea Registry + run: | + # Nutzt dein sicheres, internes Token für den Login (ohne HTTPS-Zwang) + echo "${{ secrets.GITHUB_TOKEN }}" | docker login gitea-http.gitea.svc.cluster.local:3000 -u ${{ github.actor }} --password-stdin + + - name: 4. Docker Image pushen + run: | + # Schiebt das fertige Image in Gitea + docker push gitea-http.gitea.svc.cluster.local:3000/simon_admin/homepage:latest \ No newline at end of file