Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
Restaurant API for Helm
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package 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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Homar Franquesa Agil
Restaurant API for Helm
Commits
ba6f559d
Commit
ba6f559d
authored
3 years ago
by
Homar Franquesa Agil
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yaml
parent
a54f3018
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#27504
canceled
3 years ago
Stage: build
Stage: test
Stage: dast
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nest-restaurant-api/.gitlab-ci.yaml
+1
-6
1 addition, 6 deletions
nest-restaurant-api/.gitlab-ci.yaml
with
1 addition
and
6 deletions
nest-restaurant-api/.gitlab-ci.yaml
+
1
−
6
View file @
ba6f559d
docker-build
:
# Official docker image.
image
:
docker:latest
stage
:
build
services
:
...
...
@@ -9,9 +8,6 @@ docker-build:
script
:
-
docker build --pull -t "$CI_REGISTRY_IMAGE":"$CI_COMMIT_SHA" .
-
docker push "$CI_REGISTRY_IMAGE"
variables
:
DOCKER_HOST
:
tcp://localhost:2375
DOCKER_TLS_CERTDIR
:
"
"
only
:
-
master
...
...
@@ -19,7 +15,6 @@ deploy-master:
stage
:
deploy
image
:
bitnami/kubectl
script
:
-
kubectl get deployment hola-mundo || kubectl create deployment hola-mundo --image="$CI_REGISTRY_IMAGE":"$CI_COMMIT_SHA"
-
kubectl set image deployment/hola-mundo hola-mundo="$CI_REGISTRY_IMAGE":"$CI_COMMIT_SHA"
-
helm upgrade nestapp ./charts --install --values=./charts/values.yaml --namespace default
only
:
-
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