Skip to content

Commit

Permalink
ci: add gitlab local support
Browse files Browse the repository at this point in the history
  • Loading branch information
GoshaDo committed Nov 10, 2024
1 parent 410b05c commit f34e754
Show file tree
Hide file tree
Showing 4 changed files with 66 additions and 0 deletions.
49 changes: 49 additions & 0 deletions gitlab.values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
gitlab:
toolbox:
enabled: false
gitlab-shell:
enabled: false
gitlab-pages:
enabled: false
gitlab-exporter:
enabled: false
kas:
minReplicas: 1
webservice:
minReplicas: 1
ingress:
requireBasePath: false
global:
hosts:
domain: localhost
https: false
gitlab:
name: localhost
https: false
ingress:
enabled: true
configureCertmanager: false
tls:
enabled: false
redis:
install: false
traefik:
enabled: false
gitlab-runner:
install: false
registry:
enabled: false
prometheus:
install: false
certmanager:
installCRDs: false
install: false

nginx-ingress:
controller:
replicaCount: 1
minAavailable: 1
service:
type: NodePort
nodePorts:
http: 32080
4 changes: 4 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ init-argo-workflows: init-kind
init-piper: init-kind local-build
sh ./scripts/init-piper.sh

.PHONY: init-gitlab
init-gitlab: init-kind
sh ./scripts/init-gitlab.sh

.PHONY: deploy
deploy: init-kind init-nginx init-argo-workflows local-build local-push init-piper

Expand Down
10 changes: 10 additions & 0 deletions scripts/init-gitlab.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh
set -o errexit

if [ -z "$(helm list -n gitlab | grep gitlab)" ]; then
# 8. Install gitlab
helm repo add gitlab https://charts.gitlab.io/
helm upgrade --install gitlab --create-namespace -n gitlab gitlab/gitlab -f gitlab.values.yaml
else
echo "Gitlab release exists, skipping installation"
fi
3 changes: 3 additions & 0 deletions scripts/init-kind.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ nodes:
- containerPort: 443
hostPort: 443
protocol: TCP
- containerPort: 32080
hostPort: 8080
listenAddress: "0.0.0.0"
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry]
Expand Down

0 comments on commit f34e754

Please sign in to comment.