fix: production deployment — appsettings.Production.json + fix K8S_SERVER + set image
Build and Deploy to Kubernetes / build-and-deploy (push) Has been cancelled

- appsettings.Production.json: GwUrl=cms.kbs1.ir
- prod-deploy.yml: K8S_SERVER 194.5.195.53 → 45.149.79.127
- prod-deploy.yml: kubectl set image instead of rollout restart
This commit is contained in:
masoodafar-web
2026-02-17 01:58:36 +03:30
parent 6fc00e134f
commit e7bed65149
2 changed files with 9 additions and 2 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ on:
env:
REGISTRY: 194.5.195.53:30080
IMAGE_NAME: admin/backoffice
K8S_SERVER: 194.5.195.53
K8S_SERVER: 45.149.79.127
jobs:
build-and-deploy:
@@ -69,7 +69,7 @@ jobs:
run: |
export SSHPASS="${{ secrets.SERVER_PASSWORD }}"
sshpass -e ssh -o StrictHostKeyChecking=no root@${{ env.K8S_SERVER }} "
kubectl rollout restart deployment/backoffice
kubectl set image deployment/backoffice backoffice=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
kubectl rollout status deployment/backoffice --timeout=300s
"
echo "✅ Deployed to Production!"
@@ -0,0 +1,7 @@
{
"GwUrl": "https://cms.kbs1.ir",
"Authentication": {
"Authority": "https://ids.afrino.co/",
"ClientId": "client_backoffice_spa"
}
}