Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
teckids.org
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Teckids
Team PR
teckids.org
Commits
1b8bc665
Verified
Commit
1b8bc665
authored
11 months ago
by
Tom Teichler
Browse files
Options
Downloads
Patches
Plain Diff
Update ci config
parent
77c61756
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!50
Add k8s deployment
Pipeline
#179562
skipped
Stage: deploy
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+47
-5
47 additions, 5 deletions
.gitlab-ci.yml
deploy/overlays/review/kustomization.yaml
+1
-1
1 addition, 1 deletion
deploy/overlays/review/kustomization.yaml
with
48 additions
and
6 deletions
.gitlab-ci.yml
+
47
−
5
View file @
1b8bc665
...
...
@@ -35,14 +35,56 @@ docker build:
paths
:
-
DIGESTFILE
deploy
docker image
:
.
deploy
:
stage
:
deploy
image
:
line/kubectl-kustomize:latest
tags
:
-
teckids-trusted
image
:
line/kubectl-kustomize:latest
script
:
before_script
:
-
echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
deploy production
:
extends
:
.deploy
environment
:
name
:
production
url
:
https://teckids.org
script
:
-
cd deploy/overlays/production
-
kustomize edit set image registry.edugit.org/teckids/team-pr/teckids.org:$(cat ../../../DIGESTFILE)
-
kustomize build | envsubst >output.yaml
-
kustomize edit set image registry.edugit.org/teckids/team-pr/teckids.org:$
CI_COMMIT_REF_NAME@$
(cat ../../../DIGESTFILE)
-
kustomize build | envsubst >
output.yaml
-
kubectl --kubeconfig=/tmp/kubeconfig apply -f output.yaml
only
:
-
master
deploy review
:
extends
:
.deploy
script
:
deploy_review
environment
:
name
:
review/$CI_COMMIT_REF_SLUG
url
:
https://$CI_COMMIT_REF_SLUG.review.teckids.org
on_stop
:
delete review
auto_stop_in
:
3 days
only
:
-
merge_requests
when
:
manual
script
:
-
cd deploy/overlays/review
-
kustomize edit set image registry.edugit.org/teckids/team-pr/teckids.org:$CI_COMMIT_REF_NAME@$(cat ../../../DIGESTFILE)
-
kustomize build | envsubst > output.yaml
-
kubectl --kubeconfig=/tmp/kubeconfig apply -f output.yaml
delete review
:
extends
:
.deploy
script
:
delete_review
environment
:
name
:
review/$CI_COMMIT_REF_SLUG
action
:
stop
before_script
:
-
echo $KUBECONFIG | base64 -d > /tmp/kubeconfig
-
cd deploy/overlays/review
-
kustomize build | envsubst > output.yaml
script
:
-
kubectl --kubeconfig=/tmp/kubeconfig delete -f output.yaml
when
:
manual
only
:
-
merge_requests
This diff is collapsed.
Click to expand it.
deploy/overlays/review/kustomization.yaml
+
1
−
1
View file @
1b8bc665
...
...
@@ -6,7 +6,7 @@ commonAnnotations:
source-repository
:
https://edugit.org/Teckids/team-pr/teckids.org
commonLabels
:
app
:
teckids-website
environment
:
production
environment
:
${CI_COMMIT_REF_SLUG}
namespace
:
teckids-website
patches
:
-
target
:
...
...
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