Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
ui-middleware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Open Source Software
OX App Suite
Core
ui-middleware
Commits
0a60a424
Commit
0a60a424
authored
1 year ago
by
maik.schaefer
Browse files
Options
Downloads
Patches
Plain Diff
[CI] Add preview deployment with /appsuite/ prefix
parent
471c350b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+14
-0
14 additions, 0 deletions
.gitlab-ci.yml
.gitlab/preview-prefix/kubernetes-resources.yaml
+178
-0
178 additions, 0 deletions
.gitlab/preview-prefix/kubernetes-resources.yaml
.gitlab/preview-prefix/values-template.yaml
+19
-0
19 additions, 0 deletions
.gitlab/preview-prefix/values-template.yaml
with
211 additions
and
0 deletions
.gitlab-ci.yml
+
14
−
0
View file @
0a60a424
...
...
@@ -19,3 +19,17 @@ integration tests:
variables
:
# app specific settings
REDIS_HOST
:
redis
deploy preview with prefix
:
extends
:
.auto-deploy-preview-chart
script
:
-
!reference
[
.setup-k8s
,
script
]
-
!reference
[
.customize-k8s
,
script
]
-
!reference
[
.create-image-pull-secrets
,
script
]
-
envsubst < .gitlab/preview-prefix/values-template.yaml > tmp-values.yaml
-
envsubst < .gitlab/preview-prefix/kubernetes-resources.yaml > tmp-resources.yaml
-
!reference
[
.login-registry-ro
,
script
]
-
kubectl apply -f tmp-resources.yaml
-
helm dep up helm/core-ui-middleware
-
helm upgrade -i preview-prefix helm/core-ui-middleware -f tmp-values.yaml --wait --timeout=$ROLLOUT_TIMEOUT
environment
:
null
This diff is collapsed.
Click to expand it.
.gitlab/preview-prefix/kubernetes-resources.yaml
0 → 100644
+
178
−
0
View file @
0a60a424
apiVersion
:
networking.istio.io/v1alpha3
kind
:
VirtualService
metadata
:
name
:
preview-app-prefix
spec
:
gateways
:
-
mesh
-
istio-system/default-gateway
hosts
:
-
${PREVIEW_APP_NAME}-prefix.dev.oxui.de
http
:
-
match
:
-
uri
:
prefix
:
/help-documents
name
:
office-user-guide
route
:
-
destination
:
host
:
preview-app-office-user-guide
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/help
name
:
user-guide
route
:
-
destination
:
host
:
preview-app-core-user-guide
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/api/oxguard/
name
:
guard-routes
rewrite
:
uri
:
/oxguard/
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/pks/
name
:
guard-pgp-routes
rewrite
:
uri
:
/oxguard/pgp/
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/appsuite/api/
name
:
appsuite-api
rewrite
:
uri
:
/api/
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/api
name
:
api-routes
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/ajax/
name
:
ajax-routes
rewrite
:
uri
:
/appsuite/api/
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/servlet/
name
:
servlet-routes
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/realtime/
name
:
realtime-routes
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/infostore/
name
:
infostore-routes
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/socket.io/
name
:
socket-io-routes
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/rt2/
name
:
rt2-routes
rewrite
:
uri
:
/rt2/
route
:
-
destination
:
host
:
main-core-mw-http-api
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/webservices/
name
:
soap-routes
route
:
-
destination
:
host
:
main-core-mw-http-api
-
match
:
-
uri
:
prefix
:
/office
name
:
office-service
rewrite
:
uri
:
/appsuite/
route
:
-
destination
:
host
:
preview-prefix-core-ui-middleware
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/appsuite/
name
:
ui-middleware
route
:
-
destination
:
host
:
preview-prefix-core-ui-middleware
port
:
number
:
80
-
match
:
-
uri
:
prefix
:
/
name
:
ui-middleware-root
rewrite
:
uri
:
/appsuite
route
:
-
destination
:
host
:
preview-prefix-core-ui-middleware
port
:
number
:
80
---
apiVersion
:
v1
kind
:
ConfigMap
metadata
:
name
:
preview-prefix-core-ui-middleware
data
:
config.yaml
:
|
baseUrls:
- http://preview-app-core-ui
- http://preview-app-office-web
---
This diff is collapsed.
Click to expand it.
.gitlab/preview-prefix/values-template.yaml
0 → 100644
+
19
−
0
View file @
0a60a424
imagePullSecrets
:
-
name
:
gitlab-registry-credentials
appRoot
:
/appsuite/
ingress
:
enabled
:
false
image
:
registry
:
${CI_REGISTRY}
repository
:
frontend/ui-middleware
tag
:
${TAG_NAME}
pullPolicy
:
Always
redis
:
enabled
:
true
host
:
preview-app-redis-master.${PREVIEW_APP_NAME}.svc.cluster.local
prefix
:
${CI_COMMIT_REF_SLUG}-${OX_COMPONENT}-prefix
existingConfigMap
:
preview-prefix-core-ui-middleware
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment