14 lines
400 B
Bash
14 lines
400 B
Bash
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
kind create cluster --config kind.yaml --wait 10m
|
||
|
|
|
||
|
|
kubectl create secret docker-registry gitlab \
|
||
|
|
--docker-server=registry.gitlab.com \
|
||
|
|
--docker-username=gitlab \
|
||
|
|
--docker-password="${GITLAB_TOKEN}" \
|
||
|
|
--docker-email=gitlab@paidit.se
|
||
|
|
|
||
|
|
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "gitlab"}]}'
|
||
|
|
|
||
|
|
kubectl apply -k .
|