cicd da deploy yaml togirlandi #8

Merged
husanjon merged 1 commits from fix/ci-cd into main 2026-02-13 10:53:58 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -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]"

View File

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