2 Commits

Author SHA1 Message Date
782f14a4a9 Merge pull request 'cicd da deploy yaml togirlandi' (#8) from fix/ci-cd into main
All checks were successful
Deploy to Production / build-and-deploy (push) Successful in 4m55s
Reviewed-on: #8
2026-02-13 10:53:58 +00:00
Husanjonazamov
68089a5b6a cicd da deploy yaml togirlandi 2026-02-13 15:42:32 +05:00
2 changed files with 4 additions and 2 deletions

View File

@@ -92,9 +92,10 @@ jobs:
- name: Update stack.yaml and version - name: Update stack.yaml and version
run: | 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 sed -i 's/return HttpResponse("OK.*"/return HttpResponse("OK: #${{ github.sha }}"/' config/urls.py
- name: Commit and push updated version - name: Commit and push updated version
run: | run: |
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"

View File

@@ -129,7 +129,8 @@ services:
max-file: "5" max-file: "5"
nginx: nginx:
image: jscorptech/nginx:latest image: nginx:alpine
ports: ports:
- mode: ingress - mode: ingress
target: 80 target: 80