diff --git a/configuration/kubernetes/deploy-config.yaml b/configuration/kubernetes/deploy-config.yaml index 69c4369..8bf010a 100644 --- a/configuration/kubernetes/deploy-config.yaml +++ b/configuration/kubernetes/deploy-config.yaml @@ -23,7 +23,7 @@ spec: spec: containers: - name: db-gateway - image: registry.cryptosky.me:4243/ + image: REPOSITORY_IMAGE env: - name: KUBERNETES_NAMESPACE valueFrom: @@ -84,35 +84,4 @@ spec: cpu: 500m memory: 256Mi restartPolicy: Always - triggers: [] -parameters: - - name: RESOURCE_NAME - displayName: Resource Name - description: The name of the deployment configuration resource that also matches other resources. - required: true - - name: APP_LABEL - displayName: Application Label - description: Name of the application label that should be used in all resources. - required: true - - name: IMAGE - displayName: Image Reference - description: Complete reference to an image in external Docker Registry. - required: true - - name: IMAGE_VERSION - displayName: Image Version - description: Version of specific image to pull from external Docker registry. - required: true - - name: LIVENESS_PATH - displayName: Liveness Probe Path - description: Path to use in HTTP Get for the liveness probe. - value: /health - required: false - - name: READINESS_PATH - displayName: Readiness Probe Path - description: Path to use in HTTP Get for the readiness probe. - value: /info - required: false - - name: SPRING_PROFILES_ACTIVE - displayName: Spring Profiles Active - description: The active Spring profile(s) - required: false + triggers: [] \ No newline at end of file diff --git a/configuration/pipelines/build.groovy b/configuration/pipelines/build.groovy index 499fa94..fbeb389 100644 --- a/configuration/pipelines/build.groovy +++ b/configuration/pipelines/build.groovy @@ -83,7 +83,7 @@ try { stage('Build Image') { mvn 'clean package -DskipTests' - sh "sed -i 's/BUILD_NUMBER/${env.APPLICATION_VERSION}/g' configuration/kubernetes/deploy-config.yaml" + sh "sed -i 's/REPOSITORY_IMAGE/${env.DOCKER_REPOSITORY}/${env.APPLICATION_NAME}:${env.APPLICATION_VERSION}/g' configuration/kubernetes/deploy-config.yaml" sh "cat configuration/kubernetes/deploy-config.yaml" // Update build config for kubernetes