diff --git a/pipeline.json b/pipeline.json index d3dc5a7..59ad23b 100644 --- a/pipeline.json +++ b/pipeline.json @@ -1,34 +1,38 @@ { - "version": "1.0", - "name": "CI/CD Pipeline", - "jobs": { - "build-and-push": { - "steps": [ - { - "agent": "kaniko", - - "context": "src", - "dockerfile-path": "LetsEncryptServer/Dockerfile", + "version": "1.0", + "name": "CI/CD Pipeline", + + "crUrl": "cr.maks-it.com", + "crProjectName": "certs-ui", + "crSecret": "CR_MAKS_IT", + + "projectContext": "src", - "image-name": "${{ env.REGISTRY_URL }}/${{ env.USERNAME }}/certs-ui-server:latest", - "username": "${{ env.USERNAME }}", - "password": "${{ env.PASSWORD }}" - }, - - { - "agent": "kaniko", - - "context": "src", - "dockerfile-path": "ClientApp/Dockerfile", - - "image-name": "${{ env.REGISTRY_URL }}/${{ env.USERNAME }}/certs-ui-clientapp:latest", - "username": "${{ env.USERNAME }}", - "password": "${{ env.PASSWORD }}" - } - ] - }, - "deploy": { - "steps": [] - } + "jobs": { + "build-and-push": { + "steps": [ + { + "context": ".", + "dockerfile-path": "ReverseProxy/Dockerfile", + "image-name": "certs-ui-reverseproxy", + "image-tags": ["latest", "1.0.0"] + }, + { + "context": ".", + "dockerfile-path": "LetsEncryptServer/Dockerfile", + "image-name": "certs-ui-server", + "image-tags": ["latest", "1.0.0"] + }, + { + "context": ".", + "dockerfile-path": "ClientApp/Dockerfile", + "image-name": "certs-ui-clientapp", + "image-tags": ["latest", "1.0.0"] + } + ] + }, + "deploy": { + "steps": [] } - } \ No newline at end of file + } +} \ No newline at end of file diff --git a/src/Postman/LetsEncrypt Client.postman_collection.json b/src/Postman/LetsEncrypt Client.postman_collection.json index 9fe5b7c..325b42c 100644 --- a/src/Postman/LetsEncrypt Client.postman_collection.json +++ b/src/Postman/LetsEncrypt Client.postman_collection.json @@ -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": [] + } + ] } ] } \ No newline at end of file