Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
kszkepzes-frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
JetBrains YouTrack
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
KSZK
DevTeam
kszkepzes
old
kszkepzes-frontend
Commits
5621f2b9
Verified
Commit
5621f2b9
authored
3 years ago
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
Update to new cluster
parent
85834aff
No related branches found
No related tags found
No related merge requests found
Pipeline
#17668
failed
3 years ago
Stage: Pre Build
Stage: Docker Build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+3
-2
3 additions, 2 deletions
.gitlab-ci.yml
k8s/deployment.yml
+1
-1
1 addition, 1 deletion
k8s/deployment.yml
k8s/service.yml
+1
-1
1 addition, 1 deletion
k8s/service.yml
with
5 additions
and
4 deletions
.gitlab-ci.yml
+
3
−
2
View file @
5621f2b9
variables
:
CONTAINER_IMAGE
:
'
registry.kszk
.bme.hu/kszk/
devteam/
$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME'
CONTAINER_IMAGE
:
'
harbor.sch
.bme.hu/kszk/$CI_PROJECT_NAME:$CI_COMMIT_REF_NAME'
stages
:
-
Pre Build
...
...
@@ -32,7 +32,7 @@ Docker build:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
'
'
]
script
:
-
echo "{\"auths\":{\"
registry.kszk
.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
echo "{\"auths\":{\"
harbor.sch
.bme.hu\":{\"username\":\"$REGISTRY_USER\",\"password\":\"$REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
-
/kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CONTAINER_IMAGE
Deploy to Kubernetes
:
...
...
@@ -48,6 +48,7 @@ Deploy to Kubernetes:
-
mv ./kubectl /usr/local/bin/kubectl
-
kubectl version
-
cd k8s
-
chmod 600 $KUBECONFIG
-
sed -i "s|##IMAGETAG##|${CI_COMMIT_REF_NAME}|" deployment.yml
-
kubectl apply -f deployment.yml
only
:
...
...
This diff is collapsed.
Click to expand it.
k8s/deployment.yml
+
1
−
1
View file @
5621f2b9
...
...
@@ -3,7 +3,7 @@ apiVersion: apps/v1
kind
:
Deployment
metadata
:
name
:
kszkepzes-frontend
namespace
:
devteam-kszk-bme-hu
namespace
:
kszk-kepzes-site
spec
:
replicas
:
1
selector
:
...
...
This diff is collapsed.
Click to expand it.
k8s/service.yml
+
1
−
1
View file @
5621f2b9
...
...
@@ -3,7 +3,7 @@ apiVersion: v1
kind
:
Service
metadata
:
name
:
kszkepzes-frontend
namespace
:
devteam-kszk-bme-hu
namespace
:
kszk-kepzes-site
spec
:
type
:
ClusterIP
ports
:
...
...
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