Skip to content
Snippets Groups Projects
Commit b36edac5 authored by Ijaz Ahmad's avatar Ijaz Ahmad
Browse files

Update .gitlab-ci.yml

parent 329125d7
No related branches found
No related tags found
No related merge requests found
......@@ -22,11 +22,12 @@ build-push:
- docker pull $CI_REGISTRY_IMAGE:latest || true
- docker build --cache-from $CI_REGISTRY_IMAGE:latest --tag $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --tag $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:latest
deploy:
stage: deploy
script:
- sed -i "s/COMMIT_SHA/$CI_COMMIT_SHA/g" k8s-configs/hello-docker-deployment.yaml
- sed -i "s/COMMIT_SHA/$CI_COMMIT_SHA/g" k8s-configs/deployment.yaml
- kubectl apply --namespace webproduction-prod -f k8s-configs/
only:
......
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