.github/workflows/setup-gitlab-demo.yml: upgrade gitlab chart version -> 7.0.4
This commit is contained in:
parent
43a5a0d984
commit
18a5e0013f
2
.github/workflows/setup-gitlab-demo.yml
vendored
2
.github/workflows/setup-gitlab-demo.yml
vendored
@ -58,7 +58,7 @@ jobs:
|
||||
dns_sk=$DNS_SK
|
||||
ingress_ip=35.220.216.69
|
||||
EOF
|
||||
ansible-playbook -i hosts/inventory jobs/init_k3s_cluster_artifact -D
|
||||
ansible-playbook -i hosts/inventory jobs/init_k3s_cluster_artifact -D -C
|
||||
Setup-Gitlab-In-K3S:
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
|
||||
@ -8,6 +8,7 @@
|
||||
name: gitlab
|
||||
vars:
|
||||
group: master
|
||||
gitlab_version: '7.0.4'
|
||||
namespace: gitlab
|
||||
db_namespace: database
|
||||
domain: onwalk.net
|
||||
|
||||
@ -7,21 +7,23 @@ check_empty() {
|
||||
fi
|
||||
}
|
||||
|
||||
check_empty "$1" "Please provide a domain name as the first argument"
|
||||
check_empty "$2" "Please provide a namespace as the second argument"
|
||||
check_empty "$3" "Please provide a GitLab secret as the third argument"
|
||||
check_empty "$4" "Please provide a GitLab database secret as the fourth argument"
|
||||
check_empty "$5" "Please provide a GitLab SSO secret as the fifth argument"
|
||||
check_empty "$6" "Please provide a GitLab SMTP secret as the sixth argument"
|
||||
check_empty "$7" "Please provide a GitLab Redis secret as the seventh argument"
|
||||
check_empty "$1" "Please provide a version name as the first argument"
|
||||
check_empty "$2" "Please provide a domain name as the second argument"
|
||||
check_empty "$3" "Please provide a namespace as the third argument"
|
||||
check_empty "$4" "Please provide a GitLab secret as the fourth argument"
|
||||
check_empty "$5" "Please provide a GitLab database secret as the fifth argument"
|
||||
check_empty "$6" "Please provide a GitLab SSO secret as the sixth argument"
|
||||
check_empty "$7" "Please provide a GitLab SMTP secret as the seventh argument"
|
||||
check_empty "$8" "Please provide a GitLab Redis secret as the eighth argument"
|
||||
|
||||
domain=$1
|
||||
namespace=$2
|
||||
gitlab_secret=$3
|
||||
gitlab_db_secret=$4
|
||||
gitlab_sso_secret=$5
|
||||
gitlab_smtp_secret=$6
|
||||
gitlab_redis_secret=$7
|
||||
version=$1
|
||||
domain=$2
|
||||
namespace=$3
|
||||
gitlab_secret=$4
|
||||
gitlab_db_secret=$5
|
||||
gitlab_sso_secret=$6
|
||||
gitlab_smtp_secret=$7
|
||||
gitlab_redis_secret=$8
|
||||
|
||||
cat > gitlab-values.yaml <<EOF
|
||||
global:
|
||||
@ -114,4 +116,4 @@ export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
|
||||
helm repo add gitlab https://charts.gitlab.io/
|
||||
helm repo up
|
||||
kubectl create namespace gitlab || true
|
||||
helm upgrade --install gitlab gitlab/gitlab --version=6.6.1 --namespace gitlab -f gitlab-values.yaml --timeout=3m --debug
|
||||
helm upgrade --install gitlab gitlab/gitlab --version=$version --namespace gitlab -f gitlab-values.yaml --timeout=3m --debug
|
||||
|
||||
@ -50,5 +50,5 @@
|
||||
when: inventory_hostname in groups[group]
|
||||
|
||||
- name: Setup Gitlab Server
|
||||
script: files/setup.sh {{ domain }} {{ namespace }} 'gitlab-tls' 'gitlab-db-secret' 'gitlab-sso-secret' 'gitlab-smtp-secret' 'gitlab-redis-secret'
|
||||
script: files/setup.sh {{ gitlab_version }} {{ domain }} {{ namespace }} 'gitlab-tls' 'gitlab-db-secret' 'gitlab-sso-secret' 'gitlab-smtp-secret' 'gitlab-redis-secret'
|
||||
when: inventory_hostname in groups[group]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user