Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
templates
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
tecnalia_robotics-public
templates
Merge requests
!94
Resolve "For ddeploy job, login into pull and push registries"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "For ddeploy job, login into pull and push registries"
61-for-ddeploy-job-login-into-pull-and-push-registries
into
master
Overview
3
Commits
1
Pipelines
2
Changes
1
Merged
Jon Azpiazu
requested to merge
61-for-ddeploy-job-login-into-pull-and-push-registries
into
master
1 year ago
Overview
3
Commits
1
Pipelines
2
Changes
1
Expand
Closes
#61 (closed)
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
a5ba5519
1 commit,
1 year ago
1 file
+
6
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
ci-templates/industrial-ci-templates.yml
+
6
−
2
Options
@@ -29,6 +29,8 @@ variables:
DOCKER_PUSH_REGISTRY
:
${ARTIFACT_DOCKER_URL}
DOCKER_PUSH_NAME
:
${CI_PROJECT_PATH}
DOCKER_PUSH_TAG
:
${CI_COMMIT_REF_NAME}
DOCKER_PUSH_USER
:
${ARTIFACT_CI_USER}
DOCKER_PUSH_TOKEN
:
${ARTIFACT_CI_TOKEN}
DDEPLOY_YAML
:
ddeploy.yaml
before_script
:
-
apk add --update python3 git py3-pip git-lfs bash curl jq
@@ -45,8 +47,10 @@ variables:
-
echo https://$ARTIFACT_CI_USER:$ARTIFACT_CI_TOKEN@artifact.tecnalia.com > ~/.git-credentials
# install ddeploy
-
pip install --break-system-packages git+ssh://git@git.code.tecnalia.com/tecnalia_robotics/flexbotics/flexbotics_utils/ddeploy.git@v0.2.0
-
echo "Logging into docker registry ${DOCKER_PUSH_REGISTRY} for user ${ARTIFACT_CI_USER}"
-
docker login ${DOCKER_PUSH_REGISTRY} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
-
echo "Logging into docker registry ${ARTIFACT_DOCKER_URL} for user ${ARTIFACT_CI_USER}"
-
docker login ${ARTIFACT_DOCKER_URL} -u ${ARTIFACT_CI_USER} -p ${ARTIFACT_CI_TOKEN}
-
echo "Logging into docker registry ${DOCKER_PUSH_REGISTRY} for user ${DOCKER_PUSH_USER}"
-
docker login ${DOCKER_PUSH_REGISTRY} -u ${DOCKER_PUSH_USER} -p ${DOCKER_PUSH_TOKEN}
script
:
# Run ddeploy
-
ddeploy --yaml ${DDEPLOY_YAML}
Loading