Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
atdb-ldv
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
ASTRON SDC
atdb-ldv
Commits
28a40154
Commit
28a40154
authored
2 years ago
by
Nico Vermaas
Browse files
Options
Downloads
Patches
Plain Diff
add docker login
parent
566708b9
No related branches found
No related tags found
1 merge request
!261
updating ci/cd pipeline with stages and do it as user 'sdc' instead of 'vermaas'
Pipeline
#37908
passed
2 years ago
Stage: build
Stage: deploy_to_test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+1
-2
1 addition, 2 deletions
.gitlab-ci.yml
with
1 addition
and
2 deletions
.gitlab-ci.yml
+
1
−
2
View file @
28a40154
stages
:
stages
:
-
build
-
build
-
deploy
-
deploy_to_test
-
deploy_to_test
-
deploy_to_production
-
deploy_to_production
...
@@ -17,7 +16,6 @@ docker-build:
...
@@ -17,7 +16,6 @@ docker-build:
-
docker push "$CI_REGISTRY_IMAGE"
-
docker push "$CI_REGISTRY_IMAGE"
# only:
# only:
# - master
# - master
# - release
# deploy master or branch to 'sdc-dev.astron.nl'
# deploy master or branch to 'sdc-dev.astron.nl'
...
@@ -33,6 +31,7 @@ docker-deploy-to-test:
...
@@ -33,6 +31,7 @@ docker-deploy-to-test:
-
ssh-keyscan dop814.astron.nl >> ~/.ssh/known_hosts
-
ssh-keyscan dop814.astron.nl >> ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
-
chmod 644 ~/.ssh/known_hosts
script
:
script
:
-
ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "echo $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY"
-
ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
-
ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker pull "$CI_REGISTRY_IMAGE""
-
ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p atdb -f /docker_compose/atdb-ldv/docker-compose-dev-cd.yml up -d"
-
ssh -o StrictHostKeyChecking=no sdc@dop814.astron.nl "docker-compose -p atdb -f /docker_compose/atdb-ldv/docker-compose-dev-cd.yml up -d"
when
:
manual
when
:
manual
...
...
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