Commit 6c8badd1 authored by root's avatar root

fix_k8s_deploy

parent 63bbdd3b
Pipeline #1398 failed with stage
in 13 seconds
......@@ -27,7 +27,7 @@ deploy_to_test:
image: docker:stable
script:
- wget https://storage.googleapis.com/kubernetes-release/release/v1.14.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
- sed 's|_VERSION_|'"${CI_PIPELINE_ID}"'|g' Docker/manifests/app.yml.tpl > app.yml; cat app.yml
- sed 's|_PROJECT_|'"${CI_PROJECT_NAME}"'|g; s|_NS_|'"${CI_ENVIRONMENT_NAME}|g' Docker/manifests/app.yml.tpl > app.yml; cat app.yml
- wget https://github.com/garethr/kubeval/releases/download/0.7.3/kubeval-linux-amd64.tar.gz && tar xvf kubeval-linux-amd64.tar.gz && ./kubeval app.yml
- ./kubectl apply -f app.yml
environment:
......
......@@ -21,7 +21,7 @@ metadata:
name: _PROJECT_
labels:
app: _PROJECT_
namespace: _PROJECT_
namespace: _NS_
spec:
replicas: 1
revisionHistoryLimit: 2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment