Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Rendelosch
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
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KSZK
DevTeam
Rendelosch
Commits
d29951a3
You need to sign in or sign up before continuing.
Commit
d29951a3
authored
10 months ago
by
Gábor Tóth
Browse files
Options
Downloads
Patches
Plain Diff
Add gitlab CI
parent
3192d472
No related branches found
No related tags found
No related merge requests found
Pipeline
#50727
failed
10 months ago
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+46
-0
46 additions, 0 deletions
.gitlab-ci.yml
with
46 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
+
46
−
0
View file @
d29951a3
variables
:
CONTAINER_IMAGE
:
'
harbor.sch.bme.hu/kszk-coderweek/web'
stages
:
-
build
# - deploy
build
:
stage
:
build
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
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}:$CI_COMMIT_REF_NAME"
--destination "${CONTAINER_IMAGE}:latest"
only
:
-
tags
deploy
:
stage
:
deploy
image
:
name
:
alpine
entrypoint
:
[
"
"
]
before_script
:
-
DIR="$PWD"
-
apk add bash curl gettext
-
cd /tmp
-
curl https://get.helm.sh/helm-v3.13.2-linux-amd64.tar.gz | tar xvz
-
cd /tmp/linux-amd64
-
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
-
chmod +x kubectl
-
export PATH="$PATH:/tmp/linux-amd64"
-
cd "$DIR"
script
:
-
kubectl config set-context --current --namespace coderweek
-
cd k8s
-
envsubst < Chart.yaml.template > Chart.yaml
-
envsubst < values.yaml | helm upgrade --install coderweek . -n coderweek --values -
only
:
-
tags
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