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
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Köpeczi-Bócz Gergely
kszkepzes-frontend
Commits
714cbc71
Commit
714cbc71
authored
4 years ago
by
Torma Kristóf
Browse files
Options
Downloads
Patches
Plain Diff
add fancy smancy deploy memes
parent
ece6ccd1
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+17
-0
17 additions, 0 deletions
.gitlab-ci.yml
k8s/deployment.yml
+24
-0
24 additions, 0 deletions
k8s/deployment.yml
k8s/service.yml
+15
-0
15 additions, 0 deletions
k8s/service.yml
with
56 additions
and
0 deletions
.gitlab-ci.yml
+
17
−
0
View file @
714cbc71
...
...
@@ -33,3 +33,20 @@ Docker build:
script
:
-
echo "{\"auths\":{\"registry.kszk.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
:
stage
:
deploy
image
:
alpine
environment
:
name
:
master
script
:
-
apk add --no-cache curl
-
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
-
chmod +x ./kubectl
-
mv ./kubectl /usr/local/bin/kubectl
-
kubectl version
-
cd contrib/kubernetes/
-
sed -i "s|##IMAGETAG##|${CI_COMMIT_REF_NAME}|" *.yaml
-
kubectl apply -f deployment.yaml
only
:
-
tags
This diff is collapsed.
Click to expand it.
k8s/deployment.yml
0 → 100644
+
24
−
0
View file @
714cbc71
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
kszkepzes-frontend
namespace
:
devteam-kszk-bme-hu
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
kszkepzes-frontend
template
:
metadata
:
labels
:
app
:
kszkepzes-frontend
spec
:
containers
:
-
name
:
kszkepzes-frontend
image
:
registry.kszk.bme.hu/kszk/devteam/kszkepzes-frontend:##IMAGETAG##
imagePullPolicy
:
'
Always'
ports
:
-
containerPort
:
3000
imagePullSecrets
:
-
name
:
kszkepzes-regcred
This diff is collapsed.
Click to expand it.
k8s/service.yml
0 → 100644
+
15
−
0
View file @
714cbc71
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
kszkepzes-frontend
namespace
:
devteam-kszk-bme-hu
spec
:
type
:
ClusterIP
ports
:
-
port
:
3000
targetPort
:
3000
name
:
front
protocol
:
TCP
selector
:
app
:
kszkepzes-frontend
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