Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
kubetest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ConduitMiau
kubetest
Commits
bbbaf520
Commit
bbbaf520
authored
3 years ago
by
M9713
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
de149d42
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
conduit-front/.gitlab-ci.yml
+35
-5
35 additions, 5 deletions
conduit-front/.gitlab-ci.yml
with
35 additions
and
5 deletions
conduit-front/.gitlab-ci.yml
+
35
−
5
View file @
bbbaf520
# This file is a template, and might need editing before it works on your project.
# This template moved to Jobs/Secret-Detection.gitlab-ci.yml in GitLab 14.0
# Issue: https://gitlab.com/gitlab-org/gitlab/-/issues/292977
stages
:
-
build
-
deploy
include
:
template
:
Jobs/Secret-Detection.gitlab-ci.yml
build
:
stage
:
build
when
:
manual
image
:
name
:
gcr.io/kaniko-project/executor:debug
entrypoint
:
[
"
"
]
script
:
# Build Frontend
-
echo "Building Frontend"
-
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:front
deploy
:
# tags:
# - example
stage
:
deploy
when
:
manual
script
:
echo "Deploying"
image
:
bitnami/kubectl:latest
script
:
-
kubectl apply -f service.yaml
-
kubectl apply -f deployment.yaml
-
kubectl -n default rollout restart deployment default
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