updated pipeline file

This commit is contained in:
Maksym Sadovnychyy 2025-05-15 23:13:58 +02:00
parent b30d7903a5
commit af23f83d25
2 changed files with 113 additions and 31 deletions

View File

@ -1,29 +1,33 @@
{
"version": "1.0",
"name": "CI/CD Pipeline",
"crUrl": "cr.maks-it.com",
"crProjectName": "certs-ui",
"crSecret": "CR_MAKS_IT",
"projectContext": "src",
"jobs": {
"build-and-push": {
"steps": [
{
"agent": "kaniko",
"context": "src",
"dockerfile-path": "LetsEncryptServer/Dockerfile",
"image-name": "${{ env.REGISTRY_URL }}/${{ env.USERNAME }}/certs-ui-server:latest",
"username": "${{ env.USERNAME }}",
"password": "${{ env.PASSWORD }}"
"context": ".",
"dockerfile-path": "ReverseProxy/Dockerfile",
"image-name": "certs-ui-reverseproxy",
"image-tags": ["latest", "1.0.0"]
},
{
"agent": "kaniko",
"context": "src",
"context": ".",
"dockerfile-path": "LetsEncryptServer/Dockerfile",
"image-name": "certs-ui-server",
"image-tags": ["latest", "1.0.0"]
},
{
"context": ".",
"dockerfile-path": "ClientApp/Dockerfile",
"image-name": "${{ env.REGISTRY_URL }}/${{ env.USERNAME }}/certs-ui-clientapp:latest",
"username": "${{ env.USERNAME }}",
"password": "${{ env.PASSWORD }}"
"image-name": "certs-ui-clientapp",
"image-tags": ["latest", "1.0.0"]
}
]
},
@ -31,4 +35,4 @@
"steps": []
}
}
}
}

View File

@ -646,6 +646,84 @@
"response": []
}
]
},
{
"name": "agent",
"item": [
{
"name": "reload service",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{agentKey}}"
},
{
"key": "Accept",
"value": "application/json"
},
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\r\n \"serviceName\": {{serviceName}}\r\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "http://websrv0001.corp.maks-it.com:5000/Service/Reload",
"protocol": "http",
"host": [
"websrv0001",
"corp",
"maks-it",
"com"
],
"port": "5000",
"path": [
"Service",
"Reload"
]
}
},
"response": []
},
{
"name": "hello world",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{agentKey}}",
"type": "text"
}
],
"url": {
"raw": "http://websrv0001.corp.maks-it.com:5000/HelloWorld",
"protocol": "http",
"host": [
"websrv0001",
"corp",
"maks-it",
"com"
],
"port": "5000",
"path": [
"HelloWorld"
]
}
},
"response": []
}
]
}
]
}