Skip to content
Snippets Groups Projects
Commit df69f8cc authored by Tóth Miklós Tibor's avatar Tóth Miklós Tibor :shrug:
Browse files

Add auto deploy

parent 23f439f7
No related branches found
No related tags found
No related merge requests found
Pipeline #9111 passed
...@@ -9,6 +9,7 @@ stages: ...@@ -9,6 +9,7 @@ stages:
format: format:
image: golang:alpine image: golang:alpine
stage: test stage: test
needs: []
before_script: before_script:
- apk add build-base - apk add build-base
script: script:
...@@ -19,6 +20,7 @@ format: ...@@ -19,6 +20,7 @@ format:
compile: compile:
image: golang:alpine image: golang:alpine
stage: build stage: build
needs: []
before_script: before_script:
- apk add build-base - apk add build-base
script: script:
...@@ -29,6 +31,7 @@ compile: ...@@ -29,6 +31,7 @@ compile:
build: build:
stage: docker stage: docker
needs: [ compile ]
image: image:
name: gcr.io/kaniko-project/executor:debug name: gcr.io/kaniko-project/executor:debug
entrypoint: [""] entrypoint: [""]
...@@ -47,3 +50,18 @@ build: ...@@ -47,3 +50,18 @@ build:
EOF EOF
- /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest - /kaniko/executor --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile --destination $CI_REGISTRY_IMAGE:latest
kube:
stage: deploy
image:
name: bitnami/kubectl
entrypoint: [ "" ]
needs: [ "format", "build" ]
environment:
name: apps
kubernetes:
namespace: apps
script:
- kubectl rollout restart deployment vox
only:
refs:
- master
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment