Skip to content
Snippets Groups Projects
Commit aa0af07fd7a2 authored by Alexander Trost's avatar Alexander Trost
Browse files

List ingress too

parent 38e37d651ef6
No related branches found
No related tags found
No related merge requests found
......@@ -86,6 +86,6 @@
- cd manifests/
- sed -i "s/__CI_ENVIRONMENT_SLUG__/${CI_ENVIRONMENT_SLUG}/" deployment.yaml ingress.yaml service.yaml
- sed -i "s/__VERSION__/${CI_COMMIT_REF_NAME}/" deployment.yaml ingress.yaml service.yaml
- if [[ $(kubectl apply -f deployment.yaml) == *"unchanged"* ]]; then kubectl patch deployment ${CI_ENVIRONMENT_SLUG} -p "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"ci-last-updated\":\"$(date +'%s')\"}}}}}"; fi
- if [[ "$(kubectl apply -f deployment.yaml)" == *"unchanged"* ]]; then kubectl patch deployment ${CI_ENVIRONMENT_SLUG} -p "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"ci-last-updated\":\"$(date +'%s')\"}}}}}"; fi
- kubectl apply -f service.yaml || true
- kubectl apply -f ingress.yaml
......@@ -90,6 +90,6 @@
- kubectl apply -f service.yaml || true
- kubectl apply -f ingress.yaml
- kubectl get all -l app=${CI_ENVIRONMENT_SLUG}
- kubectl get all,ing -l app=${CI_ENVIRONMENT_SLUG}
stop_review:
image: lachlanevenson/k8s-kubectl:latest
......@@ -125,4 +125,4 @@
- kubectl apply -f deployment.yaml
- kubectl apply -f service.yaml || true
- kubectl apply -f ingress.yaml
- kubectl get all -l app=${CI_ENVIRONMENT_SLUG}
- kubectl get all,ing -l app=${CI_ENVIRONMENT_SLUG}
......@@ -6,7 +6,10 @@
app: __CI_ENVIRONMENT_SLUG__
track: stable
spec:
replicas: 4
replicas: 2
selector:
matchLabels:
app: __CI_ENVIRONMENT_SLUG__
template:
metadata:
labels:
......
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