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
!73
Resolve "Force `ddeploy` options (e.g. image retention)"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Force `ddeploy` options (e.g. image retention)"
43-force-ddeploy-options-e-g-image-retention
into
master
Overview
8
Commits
12
Pipelines
12
Changes
1
All threads resolved!
Hide all comments
Merged
Jon Azpiazu
requested to merge
43-force-ddeploy-options-e-g-image-retention
into
master
3 years ago
Overview
8
Commits
12
Pipelines
12
Changes
1
All threads resolved!
Hide all comments
Expand
Closes
#43 (closed)
Edited
3 years ago
by
Jon Azpiazu
0
0
Merge request reports
Viewing commit
19433cc2
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
19433cc2
Redo calling remote script to avoid sh problems
· 19433cc2
Jon Azpiazu
authored
3 years ago
ci-templates/industrial-ci-templates.yml
+
1
−
1
Options
@@ -42,7 +42,7 @@
-
ddeploy --yaml ${DDEPLOY_YAML}
# Get ID of image created by ddeploy
-
'
DOCKER_ID=$(docker
images
--format="{{.ID}}"
|
head
-1)'
-
bash -xv <(
curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/-/raw/43-force-ddeploy-options-e-g-image-retention/scripts/enforce_labels.bash
) "
${DOCKER_ID}
"
-
curl -Ls https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/-/raw/43-force-ddeploy-options-e-g-image-retention/scripts/enforce_labels.bash
| bash -s --
${DOCKER_ID}
# Tag and push with the branch or tag name.
-
echo "Pushing to ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${DOCKER_PUSH_TAG}"
-
docker tag ${DOCKER_ID} ${DOCKER_PUSH_REGISTRY}/${DOCKER_PUSH_NAME}:${DOCKER_PUSH_TAG}
Loading