Skip to content
Snippets Groups Projects
Verified Commit 87a70cd5 authored by Tom Teichler's avatar Tom Teichler 🍻
Browse files

Revert changes

parent 8661b1d7
No related branches found
No related tags found
1 merge request!50Add k8s deployment
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment