From 68089a5b6a04c3391b227fe172a48d7e5019d1aa Mon Sep 17 00:00:00 2001 From: Husanjonazamov Date: Fri, 13 Feb 2026 15:42:32 +0500 Subject: [PATCH] cicd da deploy yaml togirlandi --- .github/workflows/deploy.yaml | 3 ++- stack.yaml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 739fee2..683f0df 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -92,9 +92,10 @@ jobs: - name: Update stack.yaml and version run: | - sed -i 's|image: ${{ secrets.DOCKER_USERNAME }}/${{ env.PROJECT_NAME }}:.*|image: ${{ secrets.DOCKER_USERNAME }}/${{ env.PROJECT_NAME }}:${{ github.run_number }}|' stack.yaml + sed -i "s|image: .*/${{ env.PROJECT_NAME }}:.*|image: ${{ secrets.DOCKER_USERNAME }}/${{ env.PROJECT_NAME }}:${{ github.run_number }}|g" stack.yaml sed -i 's/return HttpResponse("OK.*"/return HttpResponse("OK: #${{ github.sha }}"/' config/urls.py + - name: Commit and push updated version run: | git config user.name "github-actions[bot]" diff --git a/stack.yaml b/stack.yaml index 070629a..c53e2b4 100644 --- a/stack.yaml +++ b/stack.yaml @@ -129,7 +129,8 @@ services: max-file: "5" nginx: - image: jscorptech/nginx:latest + image: nginx:alpine + ports: - mode: ingress target: 80 -- 2.49.1