blob: 78c935e9de1936f70b76de963106525a2b201360 [file] [log] [blame]
deploy: $(HOME)/.gke-jenkins/oauth-credentials.yaml
@kubectl apply -f 00-jenkins_v1alpha2_jenkins_crd.yaml
@kubectl apply -f 01-all-in-one-v1alpha2.yaml
@cat configmap.yaml $(HOME)/.gke-jenkins/oauth-credentials.yaml \
| kubectl apply -f -
@kubectl apply -f mendel-linux.yaml
@kubectl apply -f ssl-cert.yaml
@kubectl apply -f ingress.yaml
deploy-secrets: $(HOME)/.gke-jenkins/release-credentials
@kubectl create secret generic mendel-release-credentials \
--from-file=$(HOME)/.gke-jenkins/release-credentials/release-keyring.tar.gz \
--from-file=$(HOME)/.gke-jenkins/release-credentials/passphrase.txt
undeploy-secrets:
@kubectl delete secret mendel-release-credentials
undeploy:
@kubectl delete -f ingress.yaml
@kubectl delete -f mendel-linux.yaml
@kubectl delete -f configmap.yaml
@kubectl delete -f 01-all-in-one-v1alpha2.yaml
@kubectl delete -f 00-jenkins_v1alpha2_jenkins_crd.yaml
mrclean: undeploy
@kubectl delete -f ssl-cert.yaml
$(HOME)/.gke-jenkins/release-credentials:
../tools/fetch-release-credentials.sh
$(HOME)/.gke-jenkins/oauth-credentials.yaml:
../tools/generate-oauth-credentials.sh