From cecf5fddc1b43cd8f128d688003254fe8a9e9e2f Mon Sep 17 00:00:00 2001 From: steinhelge Date: Mon, 17 Nov 2025 14:47:58 +0100 Subject: [PATCH] Add CI workflow and update Docker/.NET configs --- .gitea/worflows/build.yml | 53 ++++++++++++++++++++++++++++++++++++++ .gitea/workflows/build.yml | 53 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 106 insertions(+) create mode 100644 .gitea/worflows/build.yml create mode 100644 .gitea/workflows/build.yml diff --git a/.gitea/worflows/build.yml b/.gitea/worflows/build.yml new file mode 100644 index 0000000..61be1b5 --- /dev/null +++ b/.gitea/worflows/build.yml @@ -0,0 +1,53 @@ +name: Build & Deploy MinAttest + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: docker + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to Gitea Container Registry + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.theriise.net -u steinhelge --password-stdin + + # + # Frontend + # + - name: Build Frontend + run: | + docker build -t gitea.theriise.net/steinhelge/minattest-frontend:latest frontend + + - name: Push Frontend + run: docker push gitea.theriise.net/steinhelge/minattest-frontend:latest + + # + # Backend API + # + - name: Build API + run: | + docker build \ + -t gitea.theriise.net/steinhelge/minattest-api:latest \ + -f backend/Dockerfile \ + backend + + - name: Push API + run: docker push gitea.theriise.net/steinhelge/minattest-api:latest + + # + # App-host (BFF) + # + - name: Build App Host + run: | + docker build \ + -t gitea.theriise.net/steinhelge/minattest-apphost:latest \ + -f app-host/Dockerfile \ + app-host + + - name: Push App Host + run: docker push gitea.theriise.net/steinhelge/minattest-apphost:latest + diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..61be1b5 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,53 @@ +name: Build & Deploy MinAttest + +on: + push: + branches: [ "main" ] + +jobs: + build: + runs-on: docker + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Log in to Gitea Container Registry + run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login gitea.theriise.net -u steinhelge --password-stdin + + # + # Frontend + # + - name: Build Frontend + run: | + docker build -t gitea.theriise.net/steinhelge/minattest-frontend:latest frontend + + - name: Push Frontend + run: docker push gitea.theriise.net/steinhelge/minattest-frontend:latest + + # + # Backend API + # + - name: Build API + run: | + docker build \ + -t gitea.theriise.net/steinhelge/minattest-api:latest \ + -f backend/Dockerfile \ + backend + + - name: Push API + run: docker push gitea.theriise.net/steinhelge/minattest-api:latest + + # + # App-host (BFF) + # + - name: Build App Host + run: | + docker build \ + -t gitea.theriise.net/steinhelge/minattest-apphost:latest \ + -f app-host/Dockerfile \ + app-host + + - name: Push App Host + run: docker push gitea.theriise.net/steinhelge/minattest-apphost:latest +