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
87a70cd5
Verified
Commit
87a70cd5
authored
11 months ago
by
Tom Teichler
🍻
Browse files
Options
Downloads
Patches
Plain Diff
Revert changes
parent
8661b1d7
No related branches found
Branches containing commit
No related tags found
1 merge request
!50
Add k8s deployment
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+14
-13
14 additions, 13 deletions
.gitlab-ci.yml
with
14 additions
and
13 deletions
.gitlab-ci.yml
+
14
−
13
View file @
87a70cd5
variables
:
GIT_SUBMODULE_STRATEGY
:
recursive
stages
:
stages
:
-
test
-
build
-
build
-
deploy
-
deploy
variables
:
zola check
:
GIT_SUBMODULE_STRATEGY
:
recursive
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
build
docker
image
:
docker
build
:
stage
:
build
stage
:
build
interruptible
:
true
interruptible
:
true
image
:
image
:
...
@@ -18,14 +29,4 @@ build docker image:
...
@@ -18,14 +29,4 @@ build docker image:
--dockerfile $CI_PROJECT_DIR/Dockerfile
--dockerfile $CI_PROJECT_DIR/Dockerfile
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
--destination $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
--cache=true
--cache=true
--digestfile=DIGESTFILE
--cleanup
--cleanup
deploy docker image
:
stage
:
deploy
image
:
bitnami/kubectl:latest
script
:
-
cd deploy
-
sed -i s/IMAGE_TAG/$CI_COMMIT_REF_NAME@sha256:$(cat DIGESTFILE)/g
-
cat deployment.yaml
# - for file in *; do kubectl apply -f $file; done
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