Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
VoxFrontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Disappointment industries™
VoxFrontend
Commits
df69f8cc
Commit
df69f8cc
authored
Nov 11, 2021
by
Tóth Miklós Tibor
Browse files
Options
Downloads
Patches
Plain Diff
Add auto deploy
parent
23f439f7
No related branches found
No related tags found
No related merge requests found
Pipeline
#9111
passed
Nov 11, 2021
Stage: test
Stage: build
Stage: docker
Stage: deploy
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
with
18 additions
and
0 deletions
.gitlab-ci.yml
+
18
−
0
View file @
df69f8cc
...
@@ -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
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