Commit 3de02682 authored by Anton Borisov's avatar Anton Borisov

Update .gitlab-ci.yml

parent b0e96ddf
Pipeline #1404 passed with stage
in 20 seconds
...@@ -28,8 +28,8 @@ deploy_to_test: ...@@ -28,8 +28,8 @@ deploy_to_test:
script: script:
- mkdir ~/.kube && echo "$k1_KUBECONFIG" > ~/.kube/config - mkdir ~/.kube && echo "$k1_KUBECONFIG" > ~/.kube/config
- wget https://storage.googleapis.com/kubernetes-release/release/v1.14.3/bin/linux/amd64/kubectl && chmod +x ./kubectl - wget https://storage.googleapis.com/kubernetes-release/release/v1.14.3/bin/linux/amd64/kubectl && chmod +x ./kubectl
- kubectl -n prod delete cm guruconfig - ./kubectl -n prod delete cm guruconfig
- kubectl -n prod create cm guruconfig --from-file=appsettings.json - ./kubectl -n prod create cm guruconfig --from-file=appsettings.json
- sed 's|_PROJECT_|'"${CI_PROJECT_NAME}"'|g; s|_NS_|prod|g' Docker/manifests/app.yml.tpl > app.yml; cat app.yml - sed 's|_PROJECT_|'"${CI_PROJECT_NAME}"'|g; s|_NS_|prod|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 - 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 - ./kubectl apply -f app.yml
......
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