From 26fb4fb3f4da9c4e8e65750dba20da8b885092b6 Mon Sep 17 00:00:00 2001 From: Maxim Vershinin Date: Tue, 4 Aug 2026 19:17:36 +0500 Subject: [PATCH] Test CI/CD job was removed. Image building job was updated to build web version of the app --- .gitea/workflows/build_image.yaml | 22 ++++++++++++++++------ .gitea/workflows/ci_cd_test.yaml | 19 ------------------- 2 files changed, 16 insertions(+), 25 deletions(-) delete mode 100644 .gitea/workflows/ci_cd_test.yaml diff --git a/.gitea/workflows/build_image.yaml b/.gitea/workflows/build_image.yaml index b731b29..7a3aaca 100644 --- a/.gitea/workflows/build_image.yaml +++ b/.gitea/workflows/build_image.yaml @@ -20,12 +20,22 @@ jobs: run: | echo "${{ secrets.CI_PUSHER_GITEA_TOKEN }}" | docker login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin - - name: Build Docker image + - name: Build backend image run: | - docker build -t ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:${{ github.sha }} . - docker tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:latest + docker build -t ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_backend:${{ github.sha }} web/backend + docker tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_backend:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:latest - - name: Push Docker image + - name: Push backend image run: | - docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:${{ github.sha }} - docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:latest + docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_backend:${{ github.sha }} + docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_backend:latest + + - name: Build frontend image + run: | + docker build -t ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_frontend:${{ github.sha }} web/frontend + docker tag ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_frontend:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}:latest + + - name: Push frontend image + run: | + docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_frontend:${{ github.sha }} + docker push ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ env.REPO }}_frontend:latest diff --git a/.gitea/workflows/ci_cd_test.yaml b/.gitea/workflows/ci_cd_test.yaml deleted file mode 100644 index c537cc6..0000000 --- a/.gitea/workflows/ci_cd_test.yaml +++ /dev/null @@ -1,19 +0,0 @@ -name: Gitea Actions Demo -run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 -on: [push] - -jobs: - Explore-Gitea-Actions: - runs-on: ubuntu-latest - steps: - - run: echo "🎉 The job was automatically triggered by a ${{ gitea.event_name }} event." - - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by Gitea!" - - run: echo "🔎 The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." - - name: Check out repository code - uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}."