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
Merge requests
!50
Add k8s deployment
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add k8s deployment
deployment
into
master
Overview
0
Commits
32
Pipelines
52
Changes
1
Merged
Tom Teichler
requested to merge
deployment
into
master
11 months ago
Overview
0
Commits
32
Pipelines
52
Changes
1
Expand
0
0
Merge request reports
Viewing commit
0a3f7ccc
Show latest version
1 file
+
3
−
31
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
0a3f7ccc
debug
· 0a3f7ccc
Tom Teichler
authored
11 months ago
.gitlab-ci.yml
+
3
−
31
Options
@@ -6,42 +6,14 @@ stages:
-
build
-
deploy
zola check
:
stage
:
test
image
:
alpine:latest
before_script
:
-
apk add --update-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/community/ zola
-
apk add yarn
-
yarn install
script
:
-
zola check
docker build
:
stage
:
build
interruptible
:
true
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
-
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" >/kaniko/.docker/config.json
-
/kaniko/executor
--context $CI_PROJECT_DIR
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
--digest-file DIGESTFILE
--cache=true
--cleanup
artifacts
:
paths
:
-
DIGESTFILE
deploy docker image
:
stage
:
deploy
tags
:
-
teckids-trusted
image
:
bitnami/kubectl:latest
script
:
-
echo $KUBECONFIG | base64 -d > .kube/config
-
cd deploy
-
sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@$(cat ../DIGESTFILE)/g deployment.yaml
-
for file in *; do kubectl --kubeconfig=../.kube/config apply -f $file; done
-
cat deployment.yaml
-
kubectl get pods
# - for file in *; do kubectl --kubeconfig=../.kube/config apply -f $file; done
Loading