-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
47 lines (34 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
REGISTRY := rg.fr-par.scw.cloud
NAMESPACE := decidim
VERSION := latest
IMAGE_NAME := osp-decidim
TAG := $(REGISTRY)/$(NAMESPACE)/$(IMAGE_NAME):$(VERSION)
login:
docker login $(REGISTRY) -u nologin -p $(SCW_SECRET_TOKEN)
build:
docker build . --compress -t $(TAG)
push:
docker push $(TAG)
release:
@make build
@make push
ssh:
kubectl exec -it decidim-k8s-terminal-pod -- /bin/bash
kill-terminal:
kubectl delete pod decidim-k8s-terminal-pod --ignore-not-found
console:
kubectl exec -it decidim-k8s-terminal-pod -- bundle exec rails console -e production
migration:
kubectl delete job decidim-k8s-migration-job --ignore-not-found
kubectl apply -f kubeconfig/base/migration-job.yaml
rolling-update:
kubectl rollout restart deployment
proxy:
kubectl proxy
apply-production:
kubectl apply -k kubeconfig/overlays/production
apply-staging:
kubectl apply -k kubeconfig/overlays/staging
dashboard:
open http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/overview?namespace=default
@make proxy