From d56afc98a0fd06f55d6f7094313c56db62d6d0df Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Sun, 25 May 2025 22:34:47 +0300 Subject: [PATCH] fix workflows for multiple branches --- .gitea/workflows/build-container-backend.yaml | 2 +- .gitea/workflows/test-backend.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-container-backend.yaml b/.gitea/workflows/build-container-backend.yaml index 7b63342..209e529 100644 --- a/.gitea/workflows/build-container-backend.yaml +++ b/.gitea/workflows/build-container-backend.yaml @@ -12,7 +12,7 @@ jobs: git init git remote add gitea http://10.1.1.1:3000/hasslesstech/sdlc-project git fetch gitea - git checkout gitea/master + git checkout ${{ gitea.ref }} - name: Build docker image run: docker build backend/ -f backend/Dockerfile-x86_64 -t 10.5.1.5:5000/sdlc/x86_64 - name: Push docker image to registry diff --git a/.gitea/workflows/test-backend.yaml b/.gitea/workflows/test-backend.yaml index 0c3a3b1..057f988 100644 --- a/.gitea/workflows/test-backend.yaml +++ b/.gitea/workflows/test-backend.yaml @@ -13,7 +13,7 @@ jobs: git init git remote add gitea http://10.1.1.1:3000/hasslesstech/sdlc-project git fetch gitea - git checkout gitea/master + git checkout ${{ gitea.ref }} - name: Deploy testing environment shell: sh run: docker-compose -f backend/docker-compose-x86_64.yaml up -d --force-recreate