From a19de7b1b50e5f33b5b02251f27643d89948d449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20B=C3=B6ckelmann?= Date: Mon, 13 Nov 2023 22:51:19 +0100 Subject: [PATCH] Change branch to push on to master --- .gitea/workflows/demo.yaml | 30 +++++++++++++++++++++++++++--- backend/.idea/workspace.xml | 17 +---------------- 2 files changed, 28 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/demo.yaml b/.gitea/workflows/demo.yaml index d9e1159..d202286 100644 --- a/.gitea/workflows/demo.yaml +++ b/.gitea/workflows/demo.yaml @@ -42,9 +42,33 @@ jobs: - name: Build and Push Latest Docker Image id: build-and-push-latest uses: docker/build-push-action@v4 - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/master' }} with: - context: frontend file: frontend/Dockerfile push: true - tags: git.fawkes100.de/TimeManager/timemanager-frontend:latest \ No newline at end of file + tags: git.fawkes100.de/TimeManager/timemanager-frontend:latest + build-and-push-backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Log into registry at Gitea + uses: docker/login-action@v2 + with: + registry: https://git.fawkes100.de + username: ${{ secrets.REGISTRY_USER }} + password: ${{ secrets.REGISTRY_PASSWORD }} + - name: Setup Docker buildx + uses: docker/setup-buildx-action@v3 + - name: Extract Docker metadata + id: meta + uses: docker/metadata-action@v2 + with: + images: git.fawkes100.de/TimeManager/timemanager-backend + - name: Build and Push Latest Docker Image + id: build-and-push-latest + uses: docker/build-push-action@v4 + if: ${{ github.ref == 'refs/heads/master' }} + with: + file: backend/Dockerfile + push: true + tags: git.fawkes100.de/TimeManager/timemanager-backend:latest \ No newline at end of file diff --git a/backend/.idea/workspace.xml b/backend/.idea/workspace.xml index cf3cb53..2afbcaf 100644 --- a/backend/.idea/workspace.xml +++ b/backend/.idea/workspace.xml @@ -5,12 +5,7 @@ - - - - - - +