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