Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Coords Service
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
Container 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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Introduzione a GitLab CI
Coords Service
Commits
4e256de0
Commit
4e256de0
authored
3 years ago
by
Sonia Zorba
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml
parent
c4f15f74
Branches
master
No related tags found
No related merge requests found
Pipeline
#1861
passed
3 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+12
-0
12 additions, 0 deletions
.gitlab-ci.yml
with
12 additions
and
0 deletions
.gitlab-ci.yml
+
12
−
0
View file @
4e256de0
...
...
@@ -6,3 +6,15 @@ dockerize:
-
docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
-
docker build -t "${CI_REGISTRY_IMAGE}" --no-cache .
-
docker push "${CI_REGISTRY_IMAGE}"
deploy_staging
:
stage
:
deploy
tags
:
-
shell-staging
when
:
manual
script
:
-
docker stop coords-service ||
true
-
docker rm coords-service ||
true
-
docker login -u "${CI_REGISTRY_USER}" -p "${CI_REGISTRY_PASSWORD}" "${CI_REGISTRY}"
-
docker pull git.ia2.inaf.it:5050/ci-intro/coords-service
-
docker run -d -p 9999:8000 --name coords-service git.ia2.inaf.it:5050/ci-intro/coords-service 8000 $location_id
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