Skip to content
Snippets Groups Projects
Commit 9487ab2d authored by Martin Lowe's avatar Martin Lowe :flag_ca:
Browse files

Merge branch 'malowe/main/17' into 'main'

Iss #17 - Update Jenkins + k8s for latest-staging and pod probes

Closes #17

See merge request !31
parents 29e203aa 275c9885
No related branches found
No related tags found
1 merge request!31Iss #17 - Update Jenkins + k8s for latest-staging and pod probes
Pipeline #42135 passed
......@@ -95,6 +95,16 @@ pipeline {
""",
returnStdout: true
)
LATEST_TAG_NAME = sh(
script: """
if [ "${env.ENVIRONMENT}" = "staging" ]; then
printf latest-staging
else
printf latest
fi
""",
returnStdout: true
)
}
options {
......@@ -128,7 +138,7 @@ pipeline {
readTrusted 'src/main/docker/Dockerfile.jvm'
unstash 'target'
sh '''
docker build -f src/main/docker/Dockerfile.jvm --no-cache -t ${IMAGE_NAME}:${TAG_NAME} -t ${IMAGE_NAME}:latest .
docker build -f src/main/docker/Dockerfile.jvm --no-cache -t ${IMAGE_NAME}:${TAG_NAME} -t ${IMAGE_NAME}:${LATEST_TAG_NAME} .
'''
}
}
......@@ -147,7 +157,7 @@ pipeline {
withDockerRegistry([credentialsId: '04264967-fea0-40c2-bf60-09af5aeba60f', url: 'https://index.docker.io/v1/']) {
sh '''
docker push ${IMAGE_NAME}:${TAG_NAME}
docker push ${IMAGE_NAME}:latest
docker push ${IMAGE_NAME}:${LATEST_TAG_NAME}
'''
}
}
......
......@@ -41,6 +41,26 @@ spec:
requests:
cpu: 300m
memory: 384Mi
startupProbe:
httpGet:
path: /foundation/mailing-list/non-application/health
port: 8090
scheme: HTTP
timeoutSeconds: 1
initialDelaySeconds: 25
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /foundation/mailing-list/non-application/health
port: 8090
scheme: HTTP
timeoutSeconds: 1
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
failureThreshold: 3
env:
- name: CONFIG_SECRET_PATH
value: "/run/secrets/mailing-lists-api/secret.properties"
......
......@@ -30,7 +30,7 @@ spec:
weight: 1
containers:
- name: api
image: eclipsefdn/eclipsefdn-mailing-lists-api:latest
image: eclipsefdn/eclipsefdn-mailing-lists-api:latest-staging
imagePullPolicy: Always
ports:
- containerPort: 8090
......@@ -41,6 +41,26 @@ spec:
requests:
cpu: 300m
memory: 384Mi
startupProbe:
httpGet:
path: /foundation/mailing-list/non-application/health
port: 8090
scheme: HTTP
timeoutSeconds: 1
initialDelaySeconds: 25
periodSeconds: 10
successThreshold: 1
failureThreshold: 3
livenessProbe:
httpGet:
path: /foundation/mailing-list/non-application/health
port: 8090
scheme: HTTP
timeoutSeconds: 1
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
failureThreshold: 3
env:
- name: CONFIG_SECRET_PATH
value: "/run/secrets/mailing-lists-api/secret.properties"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment