mirror of
https://github.com/slurm-personal/school-dev-k8s.git
synced 2026-06-27 13:50:24 +00:00
a37bfb6345
add cicd part 2 practice
13 lines
476 B
Bash
Executable File
13 lines
476 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NS=xpaste-production
|
|
|
|
kubectl delete secret xpaste-gitlab-registry --namespace "$NS"
|
|
|
|
kubectl create secret docker-registry xpaste-gitlab-registry \
|
|
--docker-server registry.gitlab.com \
|
|
--docker-email 'student@slurm.io' \
|
|
--docker-username '<первая строчка из окна создания токена в gitlab>' \
|
|
--docker-password '<вторая строчка из окна создания токена в gitlab>' \
|
|
--namespace "$NS"
|