cicd da deploy yaml togirlandi #8
3
.github/workflows/deploy.yaml
vendored
3
.github/workflows/deploy.yaml
vendored
@@ -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]"
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user