From 224b56dcb3c93c3e330a1db8d6a85a5e04408b8d Mon Sep 17 00:00:00 2001 From: simon_admin Date: Sun, 10 May 2026 12:10:28 +0000 Subject: [PATCH] Add .gitea/workflows/build.yaml added action --- .gitea/workflows/build.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 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..e3dd61c --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,29 @@ +name: Build and Push Docker Image + +on: + push: + branches: + - main + - master # Je nachdem, wie dein Hauptbranch heißt + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Code auschecken + uses: actions/checkout@v3 + + - name: Login in die Gitea Registry + uses: docker/login-action@v2 + with: + registry: gitea.simonaltschaeffl.de + username: ${{ gitea.actor }} + password: ${{ secrets.GITHUB_TOKEN }} # Gitea generiert dieses Token automatisch! + + - name: Docker Image bauen und pushen + uses: docker/build-push-action@v4 + with: + context: . + push: true + # Hier sagen wir, dass es in DEINE private Registry soll: + tags: gitea.simonaltschaeffl.de/simon_admin/homepage:latest \ No newline at end of file