diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1ebd8a8..3363f74 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -12,11 +12,12 @@ jobs: - name: Build and push Backend (Kaniko) run: | + WORKSPACE="${{ gitea.workspace }}" docker run --rm \ - -v "${{ gitea.workspace }}/backend":/workspace \ + -v "${WORKSPACE}:/repo" \ gcr.io/kaniko-project/executor:latest \ - --context=dir:///workspace \ - --dockerfile=/workspace/Dockerfile \ + --context=dir:///repo/backend \ + --dockerfile=/repo/backend/Dockerfile \ --destination=192.168.8.250:5000/chitfund-backend:latest \ --insecure \ --skip-tls-verify @@ -31,11 +32,12 @@ jobs: - name: Build and push Frontend (Kaniko) run: | + WORKSPACE="${{ gitea.workspace }}" docker run --rm \ - -v "${{ gitea.workspace }}/luckychit":/workspace \ + -v "${WORKSPACE}:/repo" \ gcr.io/kaniko-project/executor:latest \ - --context=dir:///workspace \ - --dockerfile=/workspace/Dockerfile \ + --context=dir:///repo/luckychit \ + --dockerfile=/repo/luckychit/Dockerfile \ --destination=192.168.8.250:5000/chitfund-frontend:latest \ --insecure \ --skip-tls-verify \ No newline at end of file